Skip to content

Foundation tvOS xcode15.0 b2

Manuel de la Pena edited this page Sep 12, 2023 · 3 revisions

#Foundation.framework https://github.com/xamarin/xamarin-macios/pull/19007

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h	2023-05-19 21:24:37
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h	2023-06-10 01:59:13
@@ -89,7 +89,9 @@
 
 /* Methods for retrieving localized strings. */
 - (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1);
+#if (!0 || !0)
 - (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+#endif 
 
 /* Methods for obtaining various information about a bundle. */
 @property (nullable, readonly, copy) NSString *bundleIdentifier;
@@ -151,6 +153,8 @@
 FOUNDATION_EXPORT NSString * const NSLoadedClasses;	// notification key
 
 
+#if (!0 || !0)
+
 /*
  The NSBundleResourceRequest class is used to interact with the on demand resource loading system.
  
@@ -250,5 +254,7 @@
 /* Use this value for the loadingPriority property if the user is doing nothing but waiting on the result of this request. The system will dedicate the maximum amount of resources available to finishing this request as soon as possible.
  */
 FOUNDATION_EXPORT double const NSBundleResourceRequestLoadingPriorityUrgent API_AVAILABLE(ios(9.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
+
+#endif 
 
 NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h	2023-05-19 21:32:11
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h	2023-06-10 04:17:33
@@ -31,10 +31,9 @@
 @interface NSIndexSet : NSObject <NSCopying, NSMutableCopying, NSSecureCoding> {
     @protected   // all instance variables are private
     struct {
-        NSUInteger _isEmpty:1;
         NSUInteger _hasSingleRange:1;
-        NSUInteger _cacheValid:1;
-        NSUInteger _reservedArrayBinderController:29;
+        NSUInteger _hasBitfield:1;
+        NSUInteger _reservedArrayBinderController:30;
     } _indexSetFlags;
     union {
         struct {
@@ -44,6 +43,9 @@
             void * _data;
             void *_reserved;
         } _multipleRanges;
+        struct {
+            uint64_t _bitfield;
+        } _singleBitfield;
     } _internal;
 }
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h	2023-05-19 21:04:14
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h	2023-06-10 01:55:20
@@ -19,14 +19,17 @@
 NS_SWIFT_SENDABLE // Locks are inherently Sendable by definition
 @interface NSLock : NSObject <NSLocking>
 
+#if (!0 || !0)
 - (BOOL)tryLock NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
 
 - (BOOL)lockBeforeDate:(NSDate *)limit NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
+#endif 
 
 @property (nullable, copy) NSString *name API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
 
 @end
 
+#if (!0 || !0)
 NS_SWIFT_SENDABLE // Locks are inherently Sendable by definition
 @interface NSConditionLock : NSObject <NSLocking>
 
@@ -76,5 +79,6 @@
 @property (nullable, copy) NSString *name API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
 
 @end
+#endif 
 
 NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h	2023-05-19 21:09:06
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h	2023-06-10 04:25:05
@@ -124,12 +124,14 @@
 API_DEPRECATED("Use NSTermOfAddress instead", macos(12.0,14.0), ios(15.0,17.0), tvos(15.0,17.0), watchos(8.0,10.0))
 @interface NSMorphology (NSCustomPronouns)
 
-- (nullable NSMorphologyCustomPronoun *)customPronounForLanguage:(NSString *)language;
-- (BOOL)setCustomPronoun:(nullable NSMorphologyCustomPronoun *)features forLanguage:(NSString *)language error:(NSError **)error;
+- (nullable NSMorphologyCustomPronoun *)customPronounForLanguage:(NSString *)language
+API_DEPRECATED("Use NSTermOfAddress instead", macos(12.0,14.0), ios(15.0,17.0), tvos(15.0,17.0), watchos(8.0,10.0));
+- (BOOL)setCustomPronoun:(nullable NSMorphologyCustomPronoun *)features forLanguage:(NSString *)language error:(NSError **)error
+API_DEPRECATED("Use NSTermOfAddress instead", macos(12.0,14.0), ios(15.0,17.0), tvos(15.0,17.0), watchos(8.0,10.0));
 
 @end
 
-API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+API_DEPRECATED("Use NSTermOfAddress instead", macos(12.0,14.0), ios(15.0,17.0), tvos(15.0,17.0), watchos(8.0,10.0))
 NS_REFINED_FOR_SWIFT
 @interface NSMorphologyCustomPronoun: NSObject <NSCopying, NSSecureCoding>
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h	2023-05-19 21:03:22
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h	2023-06-10 04:25:03
@@ -31,7 +31,9 @@
 
 - (NSArray<NSString *> *)stringsByAppendingPaths:(NSArray<NSString *> *)paths;
 
+#if (!0 || !0)
 - (NSUInteger)completePathIntoString:(NSString * _Nullable * _Nullable)outputName caseSensitive:(BOOL)flag matchesIntoArray:(NSArray<NSString *> * _Nullable * _Nullable)outputArray filterTypes:(nullable NSArray<NSString *> *)filterTypes;
+#endif 
 
 @property (readonly) const char *fileSystemRepresentation NS_RETURNS_INNER_POINTER;
 - (BOOL)getFileSystemRepresentation:(char *)cname maxLength:(NSUInteger)max;
@@ -44,6 +46,7 @@
 
 @end
 
+#if (!0 || !0)
 FOUNDATION_EXPORT NSString *NSUserName(void);
 FOUNDATION_EXPORT NSString *NSFullUserName(void);
 
@@ -53,6 +56,7 @@
 FOUNDATION_EXPORT NSString *NSTemporaryDirectory(void);
 
 FOUNDATION_EXPORT NSString *NSOpenStepRootDirectory(void);
+#endif 
 
 typedef NS_ENUM(NSUInteger, NSSearchPathDirectory) {
     NSApplicationDirectory = 1,             // supported applications (Applications)
@@ -93,6 +97,8 @@
     NSAllDomainsMask = 0x0ffff  // all domains: all of the above and future items
 };
 
+#if (!0 || !0)
 FOUNDATION_EXPORT NSArray<NSString *> *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
+#endif 
 
 NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h	2023-05-19 21:14:45
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h	2023-06-10 01:55:21
@@ -5,7 +5,9 @@
 #import <Foundation/NSObject.h>
 #import <Foundation/NSString.h>
 #import <Foundation/NSCharacterSet.h>
+#if (!0 || !0)
 #import <Foundation/NSItemProvider.h>
+#endif
 #if TARGET_OS_OSX || TARGET_OS_MACCATALYST
 #import <Foundation/NSURLHandle.h>
 #endif
@@ -145,6 +147,7 @@
 
 @property (nullable, readonly, copy) NSURL *standardizedURL;
 
+#if (!0 || !0)
 
 /* Returns whether the URL's resource exists and is reachable. This method synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. If this method returns NO, the optional error is populated. This method is currently applicable only to URLs for file system resources. For other URL types, NO is returned. Symbol is present in iOS 4, but performs no operation.
  */
@@ -461,16 +464,19 @@
  */
 + (nullable instancetype)URLByResolvingAliasFileAtURL:(NSURL *)url options:(NSURLBookmarkResolutionOptions)options error:(NSError **)error API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
 
-/*  Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted).
+/*  Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. Each call to startAccessingSecurityScopedResource that returns YES must be balanced with a call to stopAccessingSecurityScopedResource when access to this resource is no longer needed by the client. Calls to start and stop accessing the resource are reference counted and may be nested, which allows the pair of calls to be logically scoped.
  */
 - (BOOL)startAccessingSecurityScopedResource API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0));
 
-/*  Revokes the access granted to the url by a prior successful call to startAccessingSecurityScopedResource.
+/*  Removes one "accessing" reference to the security scope. When all references are removed, it revokes the access granted to the url by the initial prior successful call to startAccessingSecurityScopedResource.
  */
 - (void)stopAccessingSecurityScopedResource API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0));
 
+#endif 
+
 @end
 
+#if (!0 || !0)
 
 @interface NSURL (NSPromisedItems)
 
@@ -491,7 +497,9 @@
 
 @end
 
+#endif 
 
+
 @interface NSURL (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting>
 @end
 
@@ -636,11 +644,13 @@
 
 @interface NSString (NSURLUtilities)
 
+#if (!0 || !0)
 // Returns a new string made from the receiver by replacing all characters not in the allowedCharacters set with percent encoded characters. UTF-8 encoding is used to determine the correct percent encoded characters. Entire URL strings cannot be percent-encoded. This method is intended to percent-encode a URL component or subcomponent string, NOT the entire URL string. Any characters in allowedCharacters outside of the 7-bit ASCII range are ignored.
 - (nullable NSString *)stringByAddingPercentEncodingWithAllowedCharacters:(NSCharacterSet *)allowedCharacters API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
 
 // Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters.
 @property (nullable, readonly, copy) NSString *stringByRemovingPercentEncoding API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
+#endif 
 
 
 - (nullable NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc API_DEPRECATED("Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.", macos(10.0,10.11), ios(2.0,9.0), watchos(2.0,2.0), tvos(9.0,9.0));
@@ -666,13 +676,15 @@
 
 /* The following methods work only on `file:` scheme URLs; for non-`file:` scheme URLs, these methods return the URL unchanged.
  */
+#if (!0 || !0)
 @property (nullable, readonly, copy) NSURL *URLByStandardizingPath API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
 @property (nullable, readonly, copy) NSURL *URLByResolvingSymlinksInPath API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
+#endif 
 
 @end
 
 
-#if (TARGET_OS_MAC || TARGET_OS_IPHONE)
+#if (TARGET_OS_MAC && (!0 || !0)) || TARGET_OS_IPHONE
 /* NSFileSecurity encapsulates a file system object's security information. NSFileSecurity and CFFileSecurity are toll-free bridged. Use the CFFileSecurity API for access to the low-level file security properties encapsulated by NSFileSecurity.
  */
 API_AVAILABLE(macos(10.7), ios(5.0), watchos(2.0), tvos(9.0))
Clone this wiki locally