Foundation Changes for Objective-C
Foundation
NSArray.h
Modified -[NSArray initWithObjects:count:]
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
Added NSCalendarIdentifier
Modified NSCalendar.calendarIdentifier
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
Modified NSCharacterSet
Protocols | |
---|---|
From | NSCoding, NSCopying, NSMutableCopying |
To | NSCopying, NSMutableCopying, NSSecureCoding |
Modified NSMutableCharacterSet
Protocols | |
---|---|
From | NSCopying, NSMutableCopying |
To | NSCopying, NSMutableCopying, NSSecureCoding |
NSCoder.h
NSDate.h
Added NSDate.distantFuture
Added NSDate.distantPast
NSDateComponentsFormatter.h
NSDateFormatter.h
Modified +[NSDateFormatter setDefaultFormatterBehavior:]
Declaration | |
---|---|
From | + (void)setDefaultFormatterBehavior:(NSDateFormatterBehavior)behavior |
To | + (void)setDefaultFormatterBehavior:(NSDateFormatterBehavior)defaultFormatterBehavior |
NSDateInterval.h (Added)
Added NSDateInterval
Added NSDateInterval.duration
Added NSDateInterval.endDate
Added -[NSDateInterval init]
Added NSDateInterval.startDate
NSDateIntervalFormatter.h
NSDecimalNumber.h
Added NSDecimalNumber.one
Added NSDecimalNumber.zero
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 |
NSError.h
Added NSErrorDomain
Modified NSError.domain
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 |
Modified NSException.name
Declaration | |
---|---|
From | @property(readonly, copy) NSString *name |
To | @property(readonly, copy) NSExceptionName name |
Modified +[NSException raise:format:]
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
Added NSFileAttributeKey
Added NSFileAttributeType
Added NSFileManager(NSUserInformation)
Added NSFileProtectionType
Declaration | |
---|---|
From | @property(readonly, copy) NSDictionary<NSString *,id> *directoryAttributes |
To | @property(readonly, copy) NSDictionary<NSFileAttributeKey, id> *directoryAttributes |
Modified NSDirectoryEnumerator.fileAttributes
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
Added NSHTTPCookiePropertyKey
Declaration | |
---|---|
From | + (NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSString *,id> *)properties |
To | + (NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSHTTPCookiePropertyKey,id> *)properties |
Modified -[NSHTTPCookie initWithProperties:]
Declaration | |
---|---|
From | - (instancetype)initWithProperties:(NSDictionary<NSString *,id> *)properties |
To | - (instancetype)initWithProperties:(NSDictionary<NSHTTPCookiePropertyKey,id> *)properties |
Modified NSHTTPCookie.properties
Declaration | |
---|---|
From | @property(readonly, copy) NSDictionary<NSString *,id> *properties |
To | @property(readonly, copy) NSDictionary<NSHTTPCookiePropertyKey, id> *properties |
NSHTTPCookieStorage.h
NSISO8601DateFormatter.h (Added)
Added NSISO8601DateFormatter
NSKeyedArchiver.h
NSKeyValueCoding.h
NSKeyValueObserving.h
Added NSKeyValueChangeKey
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
Added NSLocale.countryCode
Added NSLocale.currencyCode
Added NSLocale.currencySymbol
Added NSLocale.currentLocale
Added NSLocale.ISOCountryCodes
Added NSLocale.languageCode
Added NSLocale.scriptCode
Added NSLocale.systemLocale
Added NSLocale.variantCode
Added NSLocaleKey
Modified -[NSLocale displayNameForKey:value:]
Declaration | |
---|---|
From | - (NSString *)displayNameForKey:(id)key value:(id)value |
To | - (NSString *)displayNameForKey:(NSLocaleKey)key value:(id)value |
Modified -[NSLocale objectForKey:]
Declaration | |
---|---|
From | - (id)objectForKey:(id)key |
To | - (id)objectForKey:(NSLocaleKey)key |
NSMeasurement.h (Added)
Added NSMeasurement
Added NSMeasurement.unit
NSMeasurementFormatter.h (Added)
Added NSMeasurementFormatter
NSNotification.h
Added NSNotificationName
Declaration | |
---|---|
From | - (instancetype)initWithName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo |
To | - (instancetype)initWithName:(NSNotificationName)name object:(id)object userInfo:(NSDictionary *)userInfo |
Modified NSNotification.name
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
Added NSExceptionName
Added NSRunLoopMode
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 | -- |
To | watchOS 3.0 |
Deprecation | |
---|---|
From | -- |
To | watchOS 3.0 |
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 |
Modified -[NSPort removeFromRunLoop:forMode:]
Declaration | |
---|---|
From | - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode |
To | - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode |
Modified -[NSPort scheduleInRunLoop:forMode:]
Declaration | |
---|---|
From | - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode |
To | - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode |
NSProcessInfo.h
Added NSProcessInfo(NSUserInformation)
NSProgress.h
Modified NSProgress.kind
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 |
Modified NSProgress.userInfo
Declaration | |
---|---|
From | @property(readonly, copy) NSDictionary *userInfo |
To | @property(readonly, copy) NSDictionary<NSProgressUserInfoKey, id> *userInfo |
NSRunLoop.h
Added NSRunLoop.currentRunLoop
Added NSRunLoop.mainRunLoop
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 |
Modified -[NSRunLoop addPort:forMode:]
Declaration | |
---|---|
From | - (void)addPort:(NSPort *)aPort forMode:(NSString *)mode |
To | - (void)addPort:(NSPort *)aPort forMode:(NSRunLoopMode)mode |
Modified -[NSRunLoop addTimer:forMode:]
Declaration | |
---|---|
From | - (void)addTimer:(NSTimer *)timer forMode:(NSString *)mode |
To | - (void)addTimer:(NSTimer *)timer forMode:(NSRunLoopMode)mode |
Modified NSRunLoop.currentMode
Declaration | |
---|---|
From | @property(readonly, copy) NSString *currentMode |
To | @property(readonly, copy) NSRunLoopMode currentMode |
Modified -[NSRunLoop limitDateForMode:]
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 |
Modified -[NSRunLoop removePort:forMode:]
Declaration | |
---|---|
From | - (void)removePort:(NSPort *)aPort forMode:(NSString *)mode |
To | - (void)removePort:(NSPort *)aPort forMode:(NSRunLoopMode)mode |
Modified -[NSRunLoop runMode:beforeDate:]
Declaration | |
---|---|
From | - (BOOL)runMode:(NSString *)mode beforeDate:(NSDate *)limitDate |
To | - (BOOL)runMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate |
NSSet.h
Modified -[NSSet initWithObjects:count:]
Declaration | |
---|---|
From | - (instancetype)initWithObjects:(const ObjectType _Nonnull [])objects count:(NSUInteger)cnt |
To | - (instancetype)initWithObjects:(ObjectType _Nonnull const [])objects count:(NSUInteger)cnt |
NSStream.h
Added NSStreamPropertyKey
Modified -[NSStream propertyForKey:]
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 |
Modified -[NSStream setProperty:forKey:]
Declaration | |
---|---|
From | - (BOOL)setProperty:(id)property forKey:(NSString *)key |
To | - (BOOL)setProperty:(id)property forKey:(NSStreamPropertyKey)key |
NSString.h
Added NSStringTransform
Modified -[NSString compare:options:range:]
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 |
Modified NSTextCheckingResult.grammarDetails
Declaration | |
---|---|
From | @property(readonly, copy) NSArray<NSString *> *grammarDetails |
To | @property(readonly, copy) NSArray<NSDictionary<NSString *,id> *> *grammarDetails |
NSThread.h
Added NSThread.currentThread
Added NSThread.mainThread
NSTimer.h
NSTimeZone.h
Added NSTimeZone.localTimeZone
Modified +[NSTimeZone setAbbreviationDictionary:]
Declaration | |
---|---|
From | + (void)setAbbreviationDictionary:(NSDictionary<NSString *,NSString *> *)dict |
To | + (void)setAbbreviationDictionary:(NSDictionary<NSString *,NSString *> *)abbreviationDictionary |
Modified +[NSTimeZone setDefaultTimeZone:]
Declaration | |
---|---|
From | + (void)setDefaultTimeZone:(NSTimeZone *)aTimeZone |
To | + (void)setDefaultTimeZone:(NSTimeZone *)defaultTimeZone |
NSUndoManager.h
Modified NSUndoManager.runLoopModes
Declaration | |
---|---|
From | @property(copy) NSArray<NSString *> *runLoopModes |
To | @property(copy) NSArray<NSRunLoopMode> *runLoopModes |
NSUnit.h (Added)
Added NSDimension
Added +[NSDimension baseUnit]
Added NSDimension.converter
Added NSUnit
Added NSUnit.symbol
Added NSUnitAcceleration
Added NSUnitAngle
Added NSUnitAngle.arcMinutes
Added NSUnitAngle.arcSeconds
Added +[NSUnitAngle degrees]
Added NSUnitAngle.degrees
Added +[NSUnitAngle gradians]
Added NSUnitAngle.gradians
Added +[NSUnitAngle radians]
Added NSUnitAngle.radians
Added NSUnitAngle.revolutions
Added NSUnitArea
Added +[NSUnitArea acres]
Added NSUnitArea.acres
Added +[NSUnitArea ares]
Added NSUnitArea.ares
Added +[NSUnitArea hectares]
Added NSUnitArea.hectares
Added +[NSUnitArea squareFeet]
Added NSUnitArea.squareFeet
Added NSUnitArea.squareInches
Added NSUnitArea.squareMeters
Added NSUnitArea.squareMiles
Added NSUnitArea.squareYards
Added NSUnitConcentrationMass
Added NSUnitConverter
Added NSUnitConverterLinear
Added NSUnitDispersion
Added NSUnitDuration
Added +[NSUnitDuration hours]
Added NSUnitDuration.hours
Added NSUnitDuration.minutes
Added NSUnitDuration.seconds
Added NSUnitElectricCharge
Added NSUnitElectricCurrent
Added NSUnitElectricResistance
Added NSUnitEnergy
Added +[NSUnitEnergy calories]
Added NSUnitEnergy.calories
Added +[NSUnitEnergy joules]
Added NSUnitEnergy.joules
Added NSUnitEnergy.kilojoules
Added NSUnitFrequency
Added +[NSUnitFrequency hertz]
Added NSUnitFrequency.hertz
Added NSUnitFuelEfficiency
Added NSUnitIlluminance
Added +[NSUnitIlluminance lux]
Added NSUnitIlluminance.lux
Added NSUnitLength
Added NSUnitLength.centimeters
Added NSUnitLength.decameters
Added NSUnitLength.decimeters
Added +[NSUnitLength fathoms]
Added NSUnitLength.fathoms
Added +[NSUnitLength feet]
Added NSUnitLength.feet
Added +[NSUnitLength furlongs]
Added NSUnitLength.furlongs
Added NSUnitLength.hectometers
Added +[NSUnitLength inches]
Added NSUnitLength.inches
Added NSUnitLength.kilometers
Added NSUnitLength.lightyears
Added NSUnitLength.megameters
Added +[NSUnitLength meters]
Added NSUnitLength.meters
Added NSUnitLength.micrometers
Added +[NSUnitLength miles]
Added NSUnitLength.miles
Added NSUnitLength.millimeters
Added NSUnitLength.nanometers
Added +[NSUnitLength parsecs]
Added NSUnitLength.parsecs
Added NSUnitLength.picometers
Added +[NSUnitLength yards]
Added NSUnitLength.yards
Added NSUnitMass
Added +[NSUnitMass carats]
Added NSUnitMass.carats
Added +[NSUnitMass centigrams]
Added NSUnitMass.centigrams
Added +[NSUnitMass decigrams]
Added NSUnitMass.decigrams
Added +[NSUnitMass grams]
Added NSUnitMass.grams
Added +[NSUnitMass kilograms]
Added NSUnitMass.kilograms
Added +[NSUnitMass metricTons]
Added NSUnitMass.metricTons
Added +[NSUnitMass micrograms]
Added NSUnitMass.micrograms
Added +[NSUnitMass milligrams]
Added NSUnitMass.milligrams
Added +[NSUnitMass nanograms]
Added NSUnitMass.nanograms
Added +[NSUnitMass ounces]
Added NSUnitMass.ounces
Added +[NSUnitMass ouncesTroy]
Added NSUnitMass.ouncesTroy
Added +[NSUnitMass picograms]
Added NSUnitMass.picograms
Added +[NSUnitMass poundsMass]
Added NSUnitMass.poundsMass
Added +[NSUnitMass shortTons]
Added NSUnitMass.shortTons
Added +[NSUnitMass slugs]
Added NSUnitMass.slugs
Added +[NSUnitMass stones]
Added NSUnitMass.stones
Added NSUnitPower
Added NSUnitPower.femtowatts
Added +[NSUnitPower gigawatts]
Added NSUnitPower.gigawatts
Added NSUnitPower.horsepower
Added +[NSUnitPower kilowatts]
Added NSUnitPower.kilowatts
Added +[NSUnitPower megawatts]
Added NSUnitPower.megawatts
Added NSUnitPower.microwatts
Added NSUnitPower.milliwatts
Added +[NSUnitPower nanowatts]
Added NSUnitPower.nanowatts
Added +[NSUnitPower picowatts]
Added NSUnitPower.picowatts
Added +[NSUnitPower terawatts]
Added NSUnitPower.terawatts
Added +[NSUnitPower watts]
Added NSUnitPower.watts
Added NSUnitPressure
Added +[NSUnitPressure bars]
Added NSUnitPressure.bars
Added NSUnitPressure.millibars
Added NSUnitSpeed
Added +[NSUnitSpeed knots]
Added NSUnitSpeed.knots
Added NSUnitSpeed.milesPerHour
Added NSUnitTemperature
Added NSUnitTemperature.kelvin
Added NSUnitVolume
Added +[NSUnitVolume acreFeet]
Added NSUnitVolume.acreFeet
Added +[NSUnitVolume bushels]
Added NSUnitVolume.bushels
Added NSUnitVolume.centiliters
Added NSUnitVolume.cubicFeet
Added NSUnitVolume.cubicInches
Added NSUnitVolume.cubicMeters
Added NSUnitVolume.cubicMiles
Added NSUnitVolume.cubicYards
Added +[NSUnitVolume cups]
Added NSUnitVolume.cups
Added NSUnitVolume.deciliters
Added NSUnitVolume.fluidOunces
Added +[NSUnitVolume gallons]
Added NSUnitVolume.gallons
Added NSUnitVolume.kiloliters
Added +[NSUnitVolume liters]
Added NSUnitVolume.liters
Added NSUnitVolume.megaliters
Added NSUnitVolume.metricCups
Added NSUnitVolume.milliliters
Added +[NSUnitVolume pints]
Added NSUnitVolume.pints
Added +[NSUnitVolume quarts]
Added NSUnitVolume.quarts
Added NSUnitVolume.tablespoons
Added NSUnitVolume.teaspoons
NSURL.h
Added NSURLCanonicalPathKey
Added NSURLFileProtectionType
Added NSURLFileResourceType
Added NSURLResourceKey
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 |
Modified -[NSURL setResourceValues: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
Added NSURLSessionTaskMetrics
NSUserActivity.h
Modified -[NSUserActivity init]
Deprecation | |
---|---|
From | -- |
To | watchOS 3.0 |
Designated Initializer | |
---|---|
From | -- |
To | yes |
NSUserDefaults.h
NSValueTransformer.h
Added NSValueTransformerName
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 |