Documentation Archive Developer
Search

Foundation Changes for Objective-C

Foundation

FoundationErrors.h

NSArray.h

Declaration
From
- (instancetype)initWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt
To
- (instancetype)initWithObjects:(ObjectType  _Nonnull const [])objects count:(NSUInteger)cnt

NSBundle.h

NSCalendar.h

Declaration
From
@property(readonly, copy) NSString *calendarIdentifier
To
@property(readonly, copy) NSCalendarIdentifier calendarIdentifier

Declaration
From
+ (NSCalendar *)calendarWithIdentifier:(NSString *)calendarIdentifierConstant
To
+ (NSCalendar *)calendarWithIdentifier:(NSCalendarIdentifier)calendarIdentifierConstant

Declaration
From
- (id)initWithCalendarIdentifier:(NSString *)ident
To
- (id)initWithCalendarIdentifier:(NSCalendarIdentifier)ident

NSCharacterSet.h

NSCoder.h

NSDate.h

NSDateComponentsFormatter.h

NSDateFormatter.h

Modified +[NSDateFormatter setDefaultFormatterBehavior:]
Declaration
From
+ (void)setDefaultFormatterBehavior:(NSDateFormatterBehavior)behavior
To
+ (void)setDefaultFormatterBehavior:(NSDateFormatterBehavior)defaultFormatterBehavior

NSDateInterval.h (Added)

NSDateIntervalFormatter.h

NSDecimalNumber.h

Declaration
From
+ (void)setDefaultBehavior:(id<NSDecimalNumberBehaviors>)behavior
To
+ (void)setDefaultBehavior:(id<NSDecimalNumberBehaviors>)defaultBehavior

NSDictionary.h

Declaration
From
- (instancetype)initWithObjects:(const ObjectType  _Nonnull [])objects forKeys:(const id<NSCopying>  _Nonnull [])keys count:(NSUInteger)cnt
To
- (instancetype)initWithObjects:(ObjectType  _Nonnull const [])objects forKeys:(id<NSCopying>  _Nonnull const [])keys count:(NSUInteger)cnt

NSDistributedNotificationCenter.h

Declaration
From
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(NSString *)anObject
To
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSNotificationName)aName object:(NSString *)anObject

Declaration
From
- (void)addObserver:(id)observer selector:(SEL)selector name:(NSString *)name object:(NSString *)object suspensionBehavior:(NSNotificationSuspensionBehavior)suspensionBehavior
To
- (void)addObserver:(id)observer selector:(SEL)selector name:(NSNotificationName)name object:(NSString *)object suspensionBehavior:(NSNotificationSuspensionBehavior)suspensionBehavior

Declaration
From
+ (NSDistributedNotificationCenter *)notificationCenterForType:(NSString *)notificationCenterType
To
+ (NSDistributedNotificationCenter *)notificationCenterForType:(NSDistributedNotificationCenterType)notificationCenterType

Declaration
From
- (void)postNotificationName:(NSString *)aName object:(NSString *)anObject
To
- (void)postNotificationName:(NSNotificationName)aName object:(NSString *)anObject

Declaration
From
- (void)postNotificationName:(NSString *)aName object:(NSString *)anObject userInfo:(NSDictionary *)aUserInfo
To
- (void)postNotificationName:(NSNotificationName)aName object:(NSString *)anObject userInfo:(NSDictionary *)aUserInfo

Declaration
From
- (void)postNotificationName:(NSString *)name object:(NSString *)object userInfo:(NSDictionary *)userInfo deliverImmediately:(BOOL)deliverImmediately
To
- (void)postNotificationName:(NSNotificationName)name object:(NSString *)object userInfo:(NSDictionary *)userInfo deliverImmediately:(BOOL)deliverImmediately

Declaration
From
- (void)postNotificationName:(NSString *)name object:(NSString *)object userInfo:(NSDictionary *)userInfo options:(NSDistributedNotificationOptions)options
To
- (void)postNotificationName:(NSNotificationName)name object:(NSString *)object userInfo:(NSDictionary *)userInfo options:(NSDistributedNotificationOptions)options

Declaration
From
- (void)removeObserver:(id)observer name:(NSString *)aName object:(NSString *)anObject
To
- (void)removeObserver:(id)observer name:(NSNotificationName)aName object:(NSString *)anObject

NSError.h

Declaration
From
@property(readonly, copy) NSString *domain
To
@property(readonly, copy) NSErrorDomain domain

Declaration
From
+ (instancetype)errorWithDomain:(NSString *)domain code:(NSInteger)code userInfo:(NSDictionary *)dict
To
+ (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(NSDictionary *)dict

Declaration
From
- (instancetype)initWithDomain:(NSString *)domain code:(NSInteger)code userInfo:(NSDictionary *)dict
To
- (instancetype)initWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(NSDictionary *)dict

Declaration
From
+ (void)setUserInfoValueProviderForDomain:(NSString *)errorDomain provider:(id  _Nullable (^)(NSError *err, NSString *userInfoKey))provider
To
+ (void)setUserInfoValueProviderForDomain:(NSErrorDomain)errorDomain provider:(id  _Nullable (^)(NSError *err, NSString *userInfoKey))provider

Declaration
From
+ (id  _Nullable (^)(NSError * _Nonnull, NSString * _Nonnull))userInfoValueProviderForDomain:(NSString *)errorDomain
To
+ (id  _Nullable (^)(NSError * _Nonnull, NSString * _Nonnull))userInfoValueProviderForDomain:(NSErrorDomain)errorDomain

NSException.h

Declaration
From
+ (NSException *)exceptionWithName:(NSString *)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfo
To
+ (NSException *)exceptionWithName:(NSExceptionName)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfo

Declaration
From
- (instancetype)initWithName:(NSString *)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo
To
- (instancetype)initWithName:(NSExceptionName)aName reason:(NSString *)aReason userInfo:(NSDictionary *)aUserInfo

Declaration
From
@property(readonly, copy) NSString *name
To
@property(readonly, copy) NSExceptionName name

Declaration
From
+ (void)raise:(NSString *)name format:(NSString *)format, ...
To
+ (void)raise:(NSExceptionName)name format:(NSString *)format, ...

Declaration
From
+ (void)raise:(NSString *)name format:(NSString *)format arguments:(va_list)argList
To
+ (void)raise:(NSExceptionName)name format:(NSString *)format arguments:(va_list)argList

NSFileCoordinator.h

NSFileHandle.h

Declaration
From
- (void)acceptConnectionInBackgroundAndNotifyForModes:(NSArray<NSString *> *)modes
To
- (void)acceptConnectionInBackgroundAndNotifyForModes:(NSArray<NSRunLoopMode> *)modes

Declaration
From
- (void)readInBackgroundAndNotifyForModes:(NSArray<NSString *> *)modes
To
- (void)readInBackgroundAndNotifyForModes:(NSArray<NSRunLoopMode> *)modes

Declaration
From
- (void)readToEndOfFileInBackgroundAndNotifyForModes:(NSArray<NSString *> *)modes
To
- (void)readToEndOfFileInBackgroundAndNotifyForModes:(NSArray<NSRunLoopMode> *)modes

Declaration
From
- (void)waitForDataInBackgroundAndNotifyForModes:(NSArray<NSString *> *)modes
To
- (void)waitForDataInBackgroundAndNotifyForModes:(NSArray<NSRunLoopMode> *)modes

NSFileManager.h

Declaration
From
@property(readonly, copy) NSDictionary<NSString *,id> *directoryAttributes
To
@property(readonly, copy) NSDictionary<NSFileAttributeKey, id> *directoryAttributes

Declaration
From
@property(readonly, copy) NSDictionary<NSString *,id> *fileAttributes
To
@property(readonly, copy) NSDictionary<NSFileAttributeKey, id> *fileAttributes

Declaration
From
- (NSDictionary<NSString *,id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError * _Nullable *)error
To
- (NSDictionary<NSFileAttributeKey,id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError * _Nullable *)error

Declaration
From
- (NSDictionary<NSString *,id> *)attributesOfItemAtPath:(NSString *)path error:(NSError * _Nullable *)error
To
- (NSDictionary<NSFileAttributeKey,id> *)attributesOfItemAtPath:(NSString *)path error:(NSError * _Nullable *)error

Declaration
From
- (NSArray<NSURL *> *)contentsOfDirectoryAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray<NSString *> *)keys options:(NSDirectoryEnumerationOptions)mask error:(NSError * _Nullable *)error
To
- (NSArray<NSURL *> *)contentsOfDirectoryAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask error:(NSError * _Nullable *)error

Declaration
From
- (NSDirectoryEnumerator<NSURL *> *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray<NSString *> *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(BOOL (^)(NSURL *url, NSError *error))handler
To
- (NSDirectoryEnumerator<NSURL *> *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(BOOL (^)(NSURL *url, NSError *error))handler

Declaration
From
- (NSArray<NSURL *> *)mountedVolumeURLsIncludingResourceValuesForKeys:(NSArray<NSString *> *)propertyKeys options:(NSVolumeEnumerationOptions)options
To
- (NSArray<NSURL *> *)mountedVolumeURLsIncludingResourceValuesForKeys:(NSArray<NSURLResourceKey> *)propertyKeys options:(NSVolumeEnumerationOptions)options

Declaration
From
- (BOOL)setAttributes:(NSDictionary<NSString *,id> *)attributes ofItemAtPath:(NSString *)path error:(NSError * _Nullable *)error
To
- (BOOL)setAttributes:(NSDictionary<NSFileAttributeKey,id> *)attributes ofItemAtPath:(NSString *)path error:(NSError * _Nullable *)error

NSHTTPCookie.h

Declaration
From
+ (NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSString *,id> *)properties
To
+ (NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSHTTPCookiePropertyKey,id> *)properties

Declaration
From
- (instancetype)initWithProperties:(NSDictionary<NSString *,id> *)properties
To
- (instancetype)initWithProperties:(NSDictionary<NSHTTPCookiePropertyKey,id> *)properties

Declaration
From
@property(readonly, copy) NSDictionary<NSString *,id> *properties
To
@property(readonly, copy) NSDictionary<NSHTTPCookiePropertyKey, id> *properties

NSHTTPCookieStorage.h

NSISO8601DateFormatter.h (Added)

NSKeyedArchiver.h

NSKeyValueCoding.h

NSKeyValueObserving.h

Declaration
From
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSString *,id> *)change context:(void *)context
To
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context

NSLocale.h

Declaration
From
- (NSString *)displayNameForKey:(id)key value:(id)value
To
- (NSString *)displayNameForKey:(NSLocaleKey)key value:(id)value

Declaration
From
- (id)objectForKey:(id)key
To
- (id)objectForKey:(NSLocaleKey)key

NSMeasurement.h (Added)

NSMeasurementFormatter.h (Added)

NSNetServices.h

Declaration
From
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

NSNotification.h

Declaration
From
- (instancetype)initWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo
To
- (instancetype)initWithName:(NSNotificationName)name object:(id)object userInfo:(NSDictionary *)userInfo

Declaration
From
@property(readonly, copy) NSString *name
To
@property(readonly, copy) NSNotificationName name

Declaration
From
+ (instancetype)notificationWithName:(NSString *)aName object:(id)anObject
To
+ (instancetype)notificationWithName:(NSNotificationName)aName object:(id)anObject

Declaration
From
+ (instancetype)notificationWithName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo
To
+ (instancetype)notificationWithName:(NSNotificationName)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo

Declaration
From
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject
To
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSNotificationName)aName object:(id)anObject

Declaration
From
- (id<NSObject>)addObserverForName:(NSString *)name object:(id)obj queue:(NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block
To
- (id<NSObject>)addObserverForName:(NSNotificationName)name object:(id)obj queue:(NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block

Declaration
From
- (void)postNotificationName:(NSString *)aName object:(id)anObject
To
- (void)postNotificationName:(NSNotificationName)aName object:(id)anObject

Declaration
From
- (void)postNotificationName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo
To
- (void)postNotificationName:(NSNotificationName)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo

Declaration
From
- (void)removeObserver:(id)observer name:(NSString *)aName object:(id)anObject
To
- (void)removeObserver:(id)observer name:(NSNotificationName)aName object:(id)anObject

NSNotificationQueue.h

Declaration
From
- (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle coalesceMask:(NSNotificationCoalescing)coalesceMask forModes:(NSArray<NSString *> *)modes
To
- (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle coalesceMask:(NSNotificationCoalescing)coalesceMask forModes:(NSArray<NSRunLoopMode> *)modes

NSObjCRuntime.h

Added #def FOUNDATION_SWIFT_SDK_EPOCH_AT_LEAST
Added #def FOUNDATION_SWIFT_SDK_EPOCH_LESS_THAN
Added #def NS_DEPRECATED_WITH_REPLACEMENT_MAC
Added #def NS_EXTENSIBLE_STRING_ENUM
Added #def NS_NO_TAIL_CALL
Added #def NS_NOESCAPE
Added #def NS_STRING_ENUM

NSObject.h

NSOperation.h

NSOrderedSet.h

Declaration
From
- (instancetype)initWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt
To
- (instancetype)initWithObjects:(ObjectType  _Nonnull const [])objects count:(NSUInteger)cnt

NSPersonNameComponentsFormatter.h

NSPointerFunctions.h

Deprecation
From--
ToOS X 10.12

Deprecation
From--
ToOS X 10.12

NSPort.h

Declaration
From
- (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)addConnection:(NSConnection *)conn toRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)addConnection:(NSConnection *)conn toRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)removeConnection:(NSConnection *)conn fromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)removeConnection:(NSConnection *)conn fromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode

NSProcessInfo.h

Added NSProcessInfo(NSUserInformation)

NSProgress.h

Declaration
From
@property(copy) NSString *kind
To
@property(copy) NSProgressKind kind

Declaration
From
- (void)setUserInfoObject:(id)objectOrNil forKey:(NSString *)key
To
- (void)setUserInfoObject:(id)objectOrNil forKey:(NSProgressUserInfoKey)key

Declaration
From
@property(readonly, copy) NSDictionary *userInfo
To
@property(readonly, copy) NSDictionary<NSProgressUserInfoKey, id> *userInfo

NSRunLoop.h

Declaration
From
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray<NSString *> *)modes
To
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray<NSRunLoopMode> *)modes

Declaration
From
- (void)acceptInputForMode:(NSString *)mode beforeDate:(NSDate *)limitDate
To
- (void)acceptInputForMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate

Declaration
From
- (void)addPort:(NSPort *)aPort forMode:(NSString *)mode
To
- (void)addPort:(NSPort *)aPort forMode:(NSRunLoopMode)mode

Declaration
From
- (void)addTimer:(NSTimer *)timer forMode:(NSString *)mode
To
- (void)addTimer:(NSTimer *)timer forMode:(NSRunLoopMode)mode

Declaration
From
@property(readonly, copy) NSString *currentMode
To
@property(readonly, copy) NSRunLoopMode currentMode

Declaration
From
- (NSDate *)limitDateForMode:(NSString *)mode
To
- (NSDate *)limitDateForMode:(NSRunLoopMode)mode

Declaration
From
- (void)performSelector:(SEL)aSelector target:(id)target argument:(id)arg order:(NSUInteger)order modes:(NSArray<NSString *> *)modes
To
- (void)performSelector:(SEL)aSelector target:(id)target argument:(id)arg order:(NSUInteger)order modes:(NSArray<NSRunLoopMode> *)modes

Declaration
From
- (void)removePort:(NSPort *)aPort forMode:(NSString *)mode
To
- (void)removePort:(NSPort *)aPort forMode:(NSRunLoopMode)mode

Declaration
From
- (BOOL)runMode:(NSString *)mode beforeDate:(NSDate *)limitDate
To
- (BOOL)runMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate

NSSet.h

Declaration
From
- (instancetype)initWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt
To
- (instancetype)initWithObjects:(ObjectType  _Nonnull const [])objects count:(NSUInteger)cnt

NSStream.h

Declaration
From
- (id)propertyForKey:(NSString *)key
To
- (id)propertyForKey:(NSStreamPropertyKey)key

Declaration
From
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (BOOL)setProperty:(id)property forKey:(NSString *)key
To
- (BOOL)setProperty:(id)property forKey:(NSStreamPropertyKey)key

NSString.h

Declaration
From
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)compareRange
To
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare

Declaration
From
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)compareRange locale:(id)locale
To
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare locale:(id)locale

Declaration
From
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask range:(NSRange)searchRange
To
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch

Declaration
From
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)searchRange
To
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch

Declaration
From
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)searchRange locale:(NSLocale *)locale
To
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch locale:(NSLocale *)locale

Declaration
From
- (NSString *)stringByApplyingTransform:(NSString *)transform reverse:(BOOL)reverse
To
- (NSString *)stringByApplyingTransform:(NSStringTransform)transform reverse:(BOOL)reverse

Declaration
From
+ (NSStringEncoding)stringEncodingForData:(NSData *)data encodingOptions:(NSDictionary<NSString *,id> *)opts convertedString:(NSString * _Nullable *)string usedLossyConversion:(BOOL *)usedLossyConversion
To
+ (NSStringEncoding)stringEncodingForData:(NSData *)data encodingOptions:(NSDictionary<NSStringEncodingDetectionOptionsKey,id> *)opts convertedString:(NSString * _Nullable *)string usedLossyConversion:(BOOL *)usedLossyConversion

NSTextCheckingResult.h

Declaration
From
+ (NSTextCheckingResult *)grammarCheckingResultWithRange:(NSRange)range details:(NSArray<NSString *> *)details
To
+ (NSTextCheckingResult *)grammarCheckingResultWithRange:(NSRange)range details:(NSArray<NSDictionary<NSString *,id> *> *)details

Declaration
From
@property(readonly, copy) NSArray<NSString *> *grammarDetails
To
@property(readonly, copy) NSArray<NSDictionary<NSString *,id> *> *grammarDetails

NSThread.h

NSTimer.h

NSTimeZone.h

Modified +[NSTimeZone setAbbreviationDictionary:]
Declaration
From
+ (void)setAbbreviationDictionary:(NSDictionary<NSString *,NSString *> *)dict
To
+ (void)setAbbreviationDictionary:(NSDictionary<NSString *,NSString *> *)abbreviationDictionary

Declaration
From
+ (void)setDefaultTimeZone:(NSTimeZone *)aTimeZone
To
+ (void)setDefaultTimeZone:(NSTimeZone *)defaultTimeZone

NSUndoManager.h

Declaration
From
@property(copy) NSArray<NSString *> *runLoopModes
To
@property(copy) NSArray<NSRunLoopMode> *runLoopModes

NSUnit.h (Added)

Added NSUnit

NSURL.h

Declaration
From
- (NSData *)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions)options includingResourceValuesForKeys:(NSArray<NSString *> *)keys relativeToURL:(NSURL *)relativeURL error:(NSError * _Nullable *)error
To
- (NSData *)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions)options includingResourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys relativeToURL:(NSURL *)relativeURL error:(NSError * _Nullable *)error

Declaration
From
- (BOOL)getPromisedItemResourceValue:(id  _Nullable *)value forKey:(NSString *)key error:(NSError * _Nullable *)error
To
- (BOOL)getPromisedItemResourceValue:(id  _Nullable *)value forKey:(NSURLResourceKey)key error:(NSError * _Nullable *)error

Declaration
From
- (BOOL)getResourceValue:(out id  _Nullable *)value forKey:(NSString *)key error:(out NSError * _Nullable *)error
To
- (BOOL)getResourceValue:(out id  _Nullable *)value forKey:(NSURLResourceKey)key error:(out NSError * _Nullable *)error

Declaration
From
- (NSDictionary<NSString *,id> *)promisedItemResourceValuesForKeys:(NSArray<NSString *> *)keys error:(NSError * _Nullable *)error
To
- (NSDictionary<NSURLResourceKey,id> *)promisedItemResourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError * _Nullable *)error

Declaration
From
- (void)removeCachedResourceValueForKey:(NSString *)key
To
- (void)removeCachedResourceValueForKey:(NSURLResourceKey)key

Declaration
From
- (NSDictionary<NSString *,id> *)resourceValuesForKeys:(NSArray<NSString *> *)keys error:(NSError * _Nullable *)error
To
- (NSDictionary<NSURLResourceKey,id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError * _Nullable *)error

Declaration
From
+ (NSDictionary<NSString *,id> *)resourceValuesForKeys:(NSArray<NSString *> *)keys fromBookmarkData:(NSData *)bookmarkData
To
+ (NSDictionary<NSURLResourceKey,id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys fromBookmarkData:(NSData *)bookmarkData

Declaration
From
- (BOOL)setResourceValue:(id)value forKey:(NSString *)key error:(NSError * _Nullable *)error
To
- (BOOL)setResourceValue:(id)value forKey:(NSURLResourceKey)key error:(NSError * _Nullable *)error

Declaration
From
- (BOOL)setResourceValues:(NSDictionary<NSString *,id> *)keyedValues error:(NSError * _Nullable *)error
To
- (BOOL)setResourceValues:(NSDictionary<NSURLResourceKey,id> *)keyedValues error:(NSError * _Nullable *)error

Declaration
From
- (void)setTemporaryResourceValue:(id)value forKey:(NSString *)key
To
- (void)setTemporaryResourceValue:(id)value forKey:(NSURLResourceKey)key

NSURLCache.h

Modified +[NSURLCache setSharedURLCache:]
Declaration
From
+ (void)setSharedURLCache:(NSURLCache *)cache
To
+ (void)setSharedURLCache:(NSURLCache *)sharedURLCache

NSURLConnection.h

Declaration
From
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

Declaration
From
- (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
To
- (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode

NSURLCredentialStorage.h

NSURLRequest.h

NSURLSession.h

NSUserActivity.h

Deprecation
From--
ToOS X 10.12

Designated Initializer
From--
Toyes

NSUserDefaults.h

NSUserNotification.h

NSValueTransformer.h

Declaration
From
+ (void)setValueTransformer:(NSValueTransformer *)transformer forName:(NSString *)name
To
+ (void)setValueTransformer:(NSValueTransformer *)transformer forName:(NSValueTransformerName)name

Declaration
From
+ (NSValueTransformer *)valueTransformerForName:(NSString *)name
To
+ (NSValueTransformer *)valueTransformerForName:(NSValueTransformerName)name

Declaration
From
+ (NSArray<NSString *> *)valueTransformerNames
To
+ (NSArray<NSValueTransformerName> *)valueTransformerNames

NSXMLDTDNode.h

Declaration
From
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSUInteger)options
To
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSXMLNodeOptions)options

NSXMLElement.h

Declaration
From
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSUInteger)options
To
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSXMLNodeOptions)options

NSXMLNode.h

Declaration
From
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSUInteger)options
To
- (instancetype)initWithKind:(NSXMLNodeKind)kind options:(NSXMLNodeOptions)options

NSXMLNodeOptions.h