Documentation Archive Developer
Search

Foundation Changes for Objective-C

Foundation

FoundationErrors.h

NSArray.h

Declaration
From
- (NSArray *)arrayByAddingObject:(id)anObject
To
- (NSArray<ObjectType> * _Nonnull)arrayByAddingObject:(ObjectType _Nonnull)anObject

Declaration
From
- (NSArray *)arrayByAddingObjectsFromArray:(NSArray *)otherArray
To
- (NSArray<ObjectType> * _Nonnull)arrayByAddingObjectsFromArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
+ (instancetype)arrayWithArray:(NSArray *)array
To
+ (instancetype _Nonnull)arrayWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
+ (NSArray *)arrayWithContentsOfFile:(NSString *)path
To
+ (NSArray<ObjectType> * _Nullable)arrayWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
+ (NSArray *)arrayWithContentsOfURL:(NSURL *)url
To
+ (NSArray<ObjectType> * _Nullable)arrayWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
+ (instancetype)arrayWithObject:(id)anObject
To
+ (instancetype _Nonnull)arrayWithObject:(ObjectType _Nonnull)anObject

Declaration
From
+ (instancetype)arrayWithObjects:(id)firstObj, ...
To
+ (instancetype _Nonnull)arrayWithObjects:(ObjectType _Nonnull)firstObj, ...

Declaration
From
+ (instancetype)arrayWithObjects:(const id [])objects count:(NSUInteger)cnt
To
+ (instancetype _Nonnull)arrayWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt

Declaration
From
- (BOOL)containsObject:(id)anObject
To
- (BOOL)containsObject:(ObjectType _Nonnull)anObject

Declaration
From
- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsUsingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
@property(nonatomic, readonly) id firstObject
To
@property(nonatomic, readonly, nullable) ObjectType firstObject

Declaration
From
- (id)firstObjectCommonWithArray:(NSArray *)otherArray
To
- (ObjectType _Nullable)firstObjectCommonWithArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
- (void)getObjects:(id [])objects
To
- (void)getObjects:(ObjectType  _Nonnull [])objects

Declaration
From
- (void)getObjects:(id [])objects range:(NSRange)range
To
- (void)getObjects:(ObjectType  _Nonnull [])objects range:(NSRange)range

Declaration
From
- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsPassingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObject:(id)anObject
To
- (NSUInteger)indexOfObject:(ObjectType _Nonnull)anObject

Declaration
From
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range
To
- (NSUInteger)indexOfObject:(ObjectType _Nonnull)anObject inRange:(NSRange)range

Declaration
From
- (NSUInteger)indexOfObject:(id)obj inSortedRange:(NSRange)r options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator)cmp
To
- (NSUInteger)indexOfObject:(ObjectType _Nonnull)obj inSortedRange:(NSRange)r options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator _Nonnull)cmp

Declaration
From
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObjectIdenticalTo:(id)anObject
To
- (NSUInteger)indexOfObjectIdenticalTo:(ObjectType _Nonnull)anObject

Declaration
From
- (NSUInteger)indexOfObjectIdenticalTo:(id)anObject inRange:(NSRange)range
To
- (NSUInteger)indexOfObjectIdenticalTo:(ObjectType _Nonnull)anObject inRange:(NSRange)range

Declaration
From
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (instancetype)initWithArray:(NSArray *)array
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (instancetype)initWithArray:(NSArray *)array copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)array copyItems:(BOOL)flag

Declaration
From
- (NSArray *)initWithContentsOfFile:(NSString *)path
To
- (NSArray<ObjectType> * _Nullable)initWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
- (NSArray *)initWithContentsOfURL:(NSURL *)url
To
- (NSArray<ObjectType> * _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (instancetype)initWithObjects:(id)firstObj, ...
To
- (instancetype _Nonnull)initWithObjects:(ObjectType _Nonnull)firstObj, ...

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

Declaration
From
- (BOOL)isEqualToArray:(NSArray *)otherArray
To
- (BOOL)isEqualToArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
@property(nonatomic, readonly) id lastObject
To
@property(nonatomic, readonly, nullable) ObjectType lastObject

Declaration
From
- (id)objectAtIndex:(NSUInteger)index
To
- (ObjectType _Nonnull)objectAtIndex:(NSUInteger)index

Declaration
From
- (id)objectAtIndexedSubscript:(NSUInteger)idx
To
- (ObjectType _Nonnull)objectAtIndexedSubscript:(NSUInteger)idx

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (NSArray *)objectsAtIndexes:(NSIndexSet *)indexes
To
- (NSArray<ObjectType> * _Nonnull)objectsAtIndexes:(NSIndexSet * _Nonnull)indexes

Declaration
From
- (NSEnumerator *)reverseObjectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)reverseObjectEnumerator

Declaration
From
- (NSArray *)sortedArrayUsingComparator:(NSComparator)cmptr
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingComparator:(NSComparator _Nonnull)cmptr

Declaration
From
- (NSArray *)sortedArrayUsingFunction:(NSInteger (*)(id, id, void *))comparator context:(void *)context
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingFunction:(NSInteger (* _Nonnull)(ObjectType _Nonnull, ObjectType _Nonnull, void * _Nullable))comparator context:(void * _Nullable)context

Declaration
From
- (NSArray *)sortedArrayUsingFunction:(NSInteger (*)(id, id, void *))comparator context:(void *)context hint:(NSData *)hint
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingFunction:(NSInteger (* _Nonnull)(ObjectType _Nonnull, ObjectType _Nonnull, void * _Nullable))comparator context:(void * _Nullable)context hint:(NSData * _Nullable)hint

Declaration
From
- (NSArray *)sortedArrayUsingSelector:(SEL)comparator
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingSelector:(SEL _Nonnull)comparator

Declaration
From
- (NSArray *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator _Nonnull)cmptr

Declaration
From
- (NSArray *)subarrayWithRange:(NSRange)range
To
- (NSArray<ObjectType> * _Nonnull)subarrayWithRange:(NSRange)range

Declaration
From
- (void)addObject:(id)anObject
To
- (void)addObject:(ObjectType _Nonnull)anObject

Declaration
From
- (void)addObjectsFromArray:(NSArray *)otherArray
To
- (void)addObjectsFromArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
+ (NSMutableArray *)arrayWithContentsOfFile:(NSString *)path
To
+ (NSMutableArray<ObjectType> * _Nullable)arrayWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
+ (NSMutableArray *)arrayWithContentsOfURL:(NSURL *)url
To
+ (NSMutableArray<ObjectType> * _Nullable)arrayWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (NSMutableArray *)initWithContentsOfFile:(NSString *)path
To
- (NSMutableArray<ObjectType> * _Nullable)initWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
- (NSMutableArray *)initWithContentsOfURL:(NSURL *)url
To
- (NSMutableArray<ObjectType> * _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (void)insertObject:(id)anObject atIndex:(NSUInteger)index
To
- (void)insertObject:(ObjectType _Nonnull)anObject atIndex:(NSUInteger)index

Declaration
From
- (void)insertObjects:(NSArray *)objects atIndexes:(NSIndexSet *)indexes
To
- (void)insertObjects:(NSArray<ObjectType> * _Nonnull)objects atIndexes:(NSIndexSet * _Nonnull)indexes

Declaration
From
- (void)removeObject:(id)anObject
To
- (void)removeObject:(ObjectType _Nonnull)anObject

Declaration
From
- (void)removeObject:(id)anObject inRange:(NSRange)range
To
- (void)removeObject:(ObjectType _Nonnull)anObject inRange:(NSRange)range

Declaration
From
- (void)removeObjectIdenticalTo:(id)anObject
To
- (void)removeObjectIdenticalTo:(ObjectType _Nonnull)anObject

Declaration
From
- (void)removeObjectIdenticalTo:(id)anObject inRange:(NSRange)range
To
- (void)removeObjectIdenticalTo:(ObjectType _Nonnull)anObject inRange:(NSRange)range

Declaration
From
- (void)removeObjectsInArray:(NSArray *)otherArray
To
- (void)removeObjectsInArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
- (void)replaceObjectAtIndex:(NSUInteger)index withObject:(id)anObject
To
- (void)replaceObjectAtIndex:(NSUInteger)index withObject:(ObjectType _Nonnull)anObject

Declaration
From
- (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray *)objects
To
- (void)replaceObjectsAtIndexes:(NSIndexSet * _Nonnull)indexes withObjects:(NSArray<ObjectType> * _Nonnull)objects

Declaration
From
- (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray *)otherArray
To
- (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
- (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray *)otherArray range:(NSRange)otherRange
To
- (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> * _Nonnull)otherArray range:(NSRange)otherRange

Declaration
From
- (void)setArray:(NSArray *)otherArray
To
- (void)setArray:(NSArray<ObjectType> * _Nonnull)otherArray

Declaration
From
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx
To
- (void)setObject:(ObjectType _Nonnull)obj atIndexedSubscript:(NSUInteger)idx

Declaration
From
- (void)sortUsingFunction:(NSInteger (*)(id, id, void *))compare context:(void *)context
To
- (void)sortUsingFunction:(NSInteger (* _Nonnull)(ObjectType _Nonnull, ObjectType _Nonnull, void * _Nullable))compare context:(void * _Nullable)context

NSAttributedString.h

Declaration
From
- (NSDictionary *)attributesAtIndex:(NSUInteger)location effectiveRange:(NSRangePointer)range
To
- (NSDictionary<NSString *,id> * _Nonnull)attributesAtIndex:(NSUInteger)location effectiveRange:(NSRangePointer _Nullable)range

Declaration
From
- (NSDictionary *)attributesAtIndex:(NSUInteger)location longestEffectiveRange:(NSRangePointer)range inRange:(NSRange)rangeLimit
To
- (NSDictionary<NSString *,id> * _Nonnull)attributesAtIndex:(NSUInteger)location longestEffectiveRange:(NSRangePointer _Nullable)range inRange:(NSRange)rangeLimit

Declaration
From
- (void)enumerateAttributesInRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (^)(NSDictionary *attrs, NSRange range, BOOL *stop))block
To
- (void)enumerateAttributesInRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(NSDictionary<NSString *,id> * _Nonnull attrs, NSRange range, BOOL * _Nonnull stop))block

Declaration
From
- (instancetype)initWithString:(NSString *)str attributes:(NSDictionary *)attrs
To
- (instancetype _Nonnull)initWithString:(NSString * _Nonnull)str attributes:(NSDictionary<NSString *,id> * _Nullable)attrs

Declaration
From
- (void)addAttributes:(NSDictionary *)attrs range:(NSRange)range
To
- (void)addAttributes:(NSDictionary<NSString *,id> * _Nonnull)attrs range:(NSRange)range

Declaration
From
- (void)setAttributes:(NSDictionary *)attrs range:(NSRange)range
To
- (void)setAttributes:(NSDictionary<NSString *,id> * _Nullable)attrs range:(NSRange)range

NSBundle.h

Declaration
From
+ (NSArray *)allBundles
To
+ (NSArray<NSBundle *> * _Nonnull)allBundles

Declaration
From
+ (NSArray *)allFrameworks
To
+ (NSArray<NSBundle *> * _Nonnull)allFrameworks

Declaration
From
@property(readonly, copy) NSArray *executableArchitectures
To
@property(readonly, copy, nullable) NSArray<NSNumber *> *executableArchitectures

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

Declaration
From
@property(readonly, copy) NSArray *localizations
To
@property(readonly, copy, nonnull) NSArray<NSString *> *localizations

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

Declaration
From
+ (NSArray *)pathsForResourcesOfType:(NSString *)ext inDirectory:(NSString *)bundlePath
To
+ (NSArray<NSString *> * _Nonnull)pathsForResourcesOfType:(NSString * _Nullable)ext inDirectory:(NSString * _Nonnull)bundlePath

Declaration
From
- (NSArray *)pathsForResourcesOfType:(NSString *)ext inDirectory:(NSString *)subpath
To
- (NSArray<NSString *> * _Nonnull)pathsForResourcesOfType:(NSString * _Nullable)ext inDirectory:(NSString * _Nullable)subpath

Declaration
From
- (NSArray *)pathsForResourcesOfType:(NSString *)ext inDirectory:(NSString *)subpath forLocalization:(NSString *)localizationName
To
- (NSArray<NSString *> * _Nonnull)pathsForResourcesOfType:(NSString * _Nullable)ext inDirectory:(NSString * _Nullable)subpath forLocalization:(NSString * _Nullable)localizationName

Declaration
From
@property(readonly, copy) NSArray *preferredLocalizations
To
@property(readonly, copy, nonnull) NSArray<NSString *> *preferredLocalizations

Declaration
From
+ (NSArray *)preferredLocalizationsFromArray:(NSArray *)localizationsArray
To
+ (NSArray<NSString *> * _Nonnull)preferredLocalizationsFromArray:(NSArray<NSString *> * _Nonnull)localizationsArray

Declaration
From
+ (NSArray *)preferredLocalizationsFromArray:(NSArray *)localizationsArray forPreferences:(NSArray *)preferencesArray
To
+ (NSArray<NSString *> * _Nonnull)preferredLocalizationsFromArray:(NSArray<NSString *> * _Nonnull)localizationsArray forPreferences:(NSArray<NSString *> * _Nullable)preferencesArray

Declaration
From
- (NSArray *)URLsForResourcesWithExtension:(NSString *)ext subdirectory:(NSString *)subpath
To
- (NSArray<NSURL *> * _Nullable)URLsForResourcesWithExtension:(NSString * _Nullable)ext subdirectory:(NSString * _Nullable)subpath

Declaration
From
+ (NSArray *)URLsForResourcesWithExtension:(NSString *)ext subdirectory:(NSString *)subpath inBundleWithURL:(NSURL *)bundleURL
To
+ (NSArray<NSURL *> * _Nullable)URLsForResourcesWithExtension:(NSString * _Nullable)ext subdirectory:(NSString * _Nullable)subpath inBundleWithURL:(NSURL * _Nonnull)bundleURL

Declaration
From
- (NSArray *)URLsForResourcesWithExtension:(NSString *)ext subdirectory:(NSString *)subpath localization:(NSString *)localizationName
To
- (NSArray<NSURL *> * _Nullable)URLsForResourcesWithExtension:(NSString * _Nullable)ext subdirectory:(NSString * _Nullable)subpath localization:(NSString * _Nullable)localizationName

NSCache.h

Declaration
From
- (id)objectForKey:(id)key
To
- (ObjectType _Nullable)objectForKey:(KeyType _Nonnull)key

Declaration
From
- (void)removeObjectForKey:(id)key
To
- (void)removeObjectForKey:(KeyType _Nonnull)key

Declaration
From
- (void)setObject:(id)obj forKey:(id)key
To
- (void)setObject:(ObjectType _Nonnull)obj forKey:(KeyType _Nonnull)key

Declaration
From
- (void)setObject:(id)obj forKey:(id)key cost:(NSUInteger)g
To
- (void)setObject:(ObjectType _Nonnull)obj forKey:(KeyType _Nonnull)key cost:(NSUInteger)g

NSCalendar.h

Declaration
From
@property(readonly, copy) NSArray *eraSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *eraSymbols

Declaration
From
@property(readonly, copy) NSArray *longEraSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *longEraSymbols

Declaration
From
@property(readonly, copy) NSArray *monthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *monthSymbols

Declaration
From
@property(readonly, copy) NSArray *quarterSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *quarterSymbols

Declaration
From
@property(readonly, copy) NSArray *shortMonthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortMonthSymbols

Declaration
From
@property(readonly, copy) NSArray *shortQuarterSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortQuarterSymbols

Declaration
From
@property(readonly, copy) NSArray *shortStandaloneMonthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortStandaloneMonthSymbols

Declaration
From
@property(readonly, copy) NSArray *shortStandaloneQuarterSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortStandaloneQuarterSymbols

Declaration
From
@property(readonly, copy) NSArray *shortStandaloneWeekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortStandaloneWeekdaySymbols

Declaration
From
@property(readonly, copy) NSArray *shortWeekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *shortWeekdaySymbols

Declaration
From
@property(readonly, copy) NSArray *standaloneMonthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *standaloneMonthSymbols

Declaration
From
@property(readonly, copy) NSArray *standaloneQuarterSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *standaloneQuarterSymbols

Declaration
From
@property(readonly, copy) NSArray *standaloneWeekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *standaloneWeekdaySymbols

Declaration
From
@property(readonly, copy) NSArray *veryShortMonthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *veryShortMonthSymbols

Declaration
From
@property(readonly, copy) NSArray *veryShortStandaloneMonthSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *veryShortStandaloneMonthSymbols

Declaration
From
@property(readonly, copy) NSArray *veryShortStandaloneWeekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *veryShortStandaloneWeekdaySymbols

Declaration
From
@property(readonly, copy) NSArray *veryShortWeekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *veryShortWeekdaySymbols

Declaration
From
@property(readonly, copy) NSArray *weekdaySymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *weekdaySymbols

NSCoder.h

Declaration
From
@property(readonly, copy) NSSet *allowedClasses
To
@property(readonly, copy, nullable) NSSet<Class> *allowedClasses

Declaration
From
- (id)decodeObjectOfClasses:(NSSet *)classes forKey:(NSString *)key
To
- (id _Nullable)decodeObjectOfClasses:(NSSet<Class> * _Nullable)classes forKey:(NSString * _Nonnull)key

NSComparisonPredicate.h

NSCompoundPredicate.h

Declaration
From
+ (NSCompoundPredicate *)andPredicateWithSubpredicates:(NSArray *)subpredicates
To
+ (NSCompoundPredicate * _Nonnull)andPredicateWithSubpredicates:(NSArray<NSPredicate *> * _Nonnull)subpredicates

DeclarationDesignated Initializer
From
- (instancetype)initWithType:(NSCompoundPredicateType)type subpredicates:(NSArray *)subpredicates
--
To
- (instancetype _Nonnull)initWithType:(NSCompoundPredicateType)type subpredicates:(NSArray<NSPredicate *> * _Nonnull)subpredicates
yes

Declaration
From
+ (NSCompoundPredicate *)orPredicateWithSubpredicates:(NSArray *)subpredicates
To
+ (NSCompoundPredicate * _Nonnull)orPredicateWithSubpredicates:(NSArray<NSPredicate *> * _Nonnull)subpredicates

NSDate.h

Declaration
From
+ (id)distantFuture
To
+ (NSDate * _Nonnull)distantFuture

Declaration
From
+ (id)distantPast
To
+ (NSDate * _Nonnull)distantPast

NSDateFormatter.h

Declaration
From
@property(copy) NSArray *eraSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified eraSymbols

Declaration
From
@property(copy) NSArray *longEraSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified longEraSymbols

Declaration
From
@property(copy) NSArray *monthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified monthSymbols

Declaration
From
@property(copy) NSArray *quarterSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified quarterSymbols

Declaration
From
@property(copy) NSArray *shortMonthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortMonthSymbols

Declaration
From
@property(copy) NSArray *shortQuarterSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortQuarterSymbols

Declaration
From
@property(copy) NSArray *shortStandaloneMonthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortStandaloneMonthSymbols

Declaration
From
@property(copy) NSArray *shortStandaloneQuarterSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortStandaloneQuarterSymbols

Declaration
From
@property(copy) NSArray *shortStandaloneWeekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortStandaloneWeekdaySymbols

Declaration
From
@property(copy) NSArray *shortWeekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified shortWeekdaySymbols

Declaration
From
@property(copy) NSArray *standaloneMonthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified standaloneMonthSymbols

Declaration
From
@property(copy) NSArray *standaloneQuarterSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified standaloneQuarterSymbols

Declaration
From
@property(copy) NSArray *standaloneWeekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified standaloneWeekdaySymbols

Declaration
From
@property(copy) NSArray *veryShortMonthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified veryShortMonthSymbols

Declaration
From
@property(copy) NSArray *veryShortStandaloneMonthSymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified veryShortStandaloneMonthSymbols

Declaration
From
@property(copy) NSArray *veryShortStandaloneWeekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified veryShortStandaloneWeekdaySymbols

Declaration
From
@property(copy) NSArray *veryShortWeekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified veryShortWeekdaySymbols

Declaration
From
@property(copy) NSArray *weekdaySymbols
To
@property(copy) NSArray<NSString *> * _Null_unspecified weekdaySymbols

NSDictionary.h

Added NSDictionary(NSDeprecated)
Declaration
From
@property(readonly, copy) NSArray *allKeys
To
@property(readonly, copy, nonnull) NSArray<KeyType> *allKeys

Declaration
From
- (NSArray *)allKeysForObject:(id)anObject
To
- (NSArray<KeyType> * _Nonnull)allKeysForObject:(ObjectType _Nonnull)anObject

Declaration
From
@property(readonly, copy) NSArray *allValues
To
@property(readonly, copy, nonnull) NSArray<ObjectType> *allValues

Declaration
From
+ (NSDictionary *)dictionaryWithContentsOfFile:(NSString *)path
To
+ (NSDictionary<KeyType,ObjectType> * _Nullable)dictionaryWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
+ (NSDictionary *)dictionaryWithContentsOfURL:(NSURL *)url
To
+ (NSDictionary<KeyType,ObjectType> * _Nullable)dictionaryWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
+ (instancetype)dictionaryWithDictionary:(NSDictionary *)dict
To
+ (instancetype _Nonnull)dictionaryWithDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)dict

Declaration
From
+ (instancetype)dictionaryWithObject:(id)object forKey:(id<NSCopying>)key
To
+ (instancetype _Nonnull)dictionaryWithObject:(ObjectType _Nonnull)object forKey:(id<NSCopying> _Nonnull)key

Declaration
From
+ (instancetype)dictionaryWithObjects:(NSArray *)objects forKeys:(NSArray *)keys
To
+ (instancetype _Nonnull)dictionaryWithObjects:(NSArray<ObjectType> * _Nonnull)objects forKeys:(NSArray<id<NSCopying>> * _Nonnull)keys

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

Declaration
From
- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block
To
- (void)enumerateKeysAndObjectsUsingBlock:(void (^ _Nonnull)(KeyType _Nonnull key, ObjectType _Nonnull obj, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id key, id obj, BOOL *stop))block
To
- (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(KeyType _Nonnull key, ObjectType _Nonnull obj, BOOL * _Nonnull stop))block

DeclarationDeprecation
From
- (void)getObjects:(id [])objects andKeys:(id [])keys
--
To
- (void)getObjects:(ObjectType  _Nonnull [])objects andKeys:(KeyType  _Nonnull [])keys
iOS 9.0

Declaration
From
- (NSDictionary *)initWithContentsOfFile:(NSString *)path
To
- (NSDictionary<KeyType,ObjectType> * _Nullable)initWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
- (NSDictionary *)initWithContentsOfURL:(NSURL *)url
To
- (NSDictionary<KeyType,ObjectType> * _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (instancetype)initWithDictionary:(NSDictionary *)otherDictionary
To
- (instancetype _Nonnull)initWithDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)otherDictionary

Declaration
From
- (instancetype)initWithDictionary:(NSDictionary *)otherDictionary copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)otherDictionary copyItems:(BOOL)flag

Declaration
From
- (instancetype)initWithObjects:(NSArray *)objects forKeys:(NSArray *)keys
To
- (instancetype _Nonnull)initWithObjects:(NSArray<ObjectType> * _Nonnull)objects forKeys:(NSArray<id<NSCopying>> * _Nonnull)keys

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

Declaration
From
- (BOOL)isEqualToDictionary:(NSDictionary *)otherDictionary
To
- (BOOL)isEqualToDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)otherDictionary

Declaration
From
- (NSEnumerator *)keyEnumerator
To
- (NSEnumerator<KeyType> * _Nonnull)keyEnumerator

Declaration
From
- (NSSet *)keysOfEntriesPassingTest:(BOOL (^)(id key, id obj, BOOL *stop))predicate
To
- (NSSet<KeyType> * _Nonnull)keysOfEntriesPassingTest:(BOOL (^ _Nonnull)(KeyType _Nonnull key, ObjectType _Nonnull obj, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSSet *)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id key, id obj, BOOL *stop))predicate
To
- (NSSet<KeyType> * _Nonnull)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(KeyType _Nonnull key, ObjectType _Nonnull obj, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSArray *)keysSortedByValueUsingComparator:(NSComparator)cmptr
To
- (NSArray<KeyType> * _Nonnull)keysSortedByValueUsingComparator:(NSComparator _Nonnull)cmptr

Declaration
From
- (NSArray *)keysSortedByValueUsingSelector:(SEL)comparator
To
- (NSArray<KeyType> * _Nonnull)keysSortedByValueUsingSelector:(SEL _Nonnull)comparator

Declaration
From
- (NSArray *)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr
To
- (NSArray<KeyType> * _Nonnull)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator _Nonnull)cmptr

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (id)objectForKey:(id)aKey
To
- (ObjectType _Nullable)objectForKey:(KeyType _Nonnull)aKey

Declaration
From
- (id)objectForKeyedSubscript:(id)key
To
- (ObjectType _Nullable)objectForKeyedSubscript:(KeyType _Nonnull)key

Declaration
From
- (NSArray *)objectsForKeys:(NSArray *)keys notFoundMarker:(id)marker
To
- (NSArray<ObjectType> * _Nonnull)objectsForKeys:(NSArray<KeyType> * _Nonnull)keys notFoundMarker:(ObjectType _Nonnull)marker

Declaration
From
+ (id)sharedKeySetForKeys:(NSArray *)keys
To
+ (id _Nonnull)sharedKeySetForKeys:(NSArray<id<NSCopying>> * _Nonnull)keys

Declaration
From
- (void)addEntriesFromDictionary:(NSDictionary *)otherDictionary
To
- (void)addEntriesFromDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)otherDictionary

Declaration
From
+ (NSMutableDictionary *)dictionaryWithContentsOfFile:(NSString *)path
To
+ (NSMutableDictionary<KeyType,ObjectType> * _Nullable)dictionaryWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
+ (NSMutableDictionary *)dictionaryWithContentsOfURL:(NSURL *)url
To
+ (NSMutableDictionary<KeyType,ObjectType> * _Nullable)dictionaryWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
+ (NSMutableDictionary *)dictionaryWithSharedKeySet:(id)keyset
To
+ (NSMutableDictionary<KeyType,ObjectType> * _Nonnull)dictionaryWithSharedKeySet:(id _Nonnull)keyset

Declaration
From
- (NSMutableDictionary *)initWithContentsOfFile:(NSString *)path
To
- (NSMutableDictionary<KeyType,ObjectType> * _Nullable)initWithContentsOfFile:(NSString * _Nonnull)path

Declaration
From
- (NSMutableDictionary *)initWithContentsOfURL:(NSURL *)url
To
- (NSMutableDictionary<KeyType,ObjectType> * _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (void)removeObjectForKey:(id)aKey
To
- (void)removeObjectForKey:(KeyType _Nonnull)aKey

Declaration
From
- (void)removeObjectsForKeys:(NSArray *)keyArray
To
- (void)removeObjectsForKeys:(NSArray<KeyType> * _Nonnull)keyArray

Declaration
From
- (void)setDictionary:(NSDictionary *)otherDictionary
To
- (void)setDictionary:(NSDictionary<KeyType,ObjectType> * _Nonnull)otherDictionary

Declaration
From
- (void)setObject:(id)anObject forKey:(id<NSCopying>)aKey
To
- (void)setObject:(ObjectType _Nonnull)anObject forKey:(id<NSCopying> _Nonnull)aKey

Declaration
From
- (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key
To
- (void)setObject:(ObjectType _Nullable)obj forKeyedSubscript:(id<NSCopying> _Nonnull)key

NSEnumerator.h

Declaration
From
@property(readonly, copy) NSArray *allObjects
To
@property(readonly, copy, nonnull) NSArray<ObjectType> *allObjects

Declaration
From
- (id)nextObject
To
- (ObjectType _Nullable)nextObject

NSError.h

Declaration
From
@property(readonly, copy) NSArray *localizedRecoveryOptions
To
@property(readonly, copy, nullable) NSArray<NSString *> *localizedRecoveryOptions

Declaration
From
@property(readonly, retain) id recoveryAttempter
To
@property(readonly, strong, nullable) id recoveryAttempter

NSException.h

Declaration
From
@property(readonly, copy) NSArray *callStackReturnAddresses
To
@property(readonly, copy, nonnull) NSArray<NSNumber *> *callStackReturnAddresses

Declaration
From
@property(readonly, copy) NSArray *callStackSymbols
To
@property(readonly, copy, nonnull) NSArray<NSString *> *callStackSymbols

NSExpression.h

Declaration
From
@property(readonly, copy) NSArray *arguments
To
@property(readonly, copy, nullable) NSArray<NSExpression *> *arguments

Declaration
From
@property(readonly, copy) id (^expressionBlock)(id, NSArray *, NSMutableDictionary *)
To
@property(readonly, copy, nonnull) id  (^ _Nonnull)(id _Nullable, NSArray * _Nonnull, NSMutableDictionary * _Nullable) expressionBlock

Declaration
From
+ (NSExpression *)expressionForBlock:(id (^)(id evaluatedObject, NSArray *expressions, NSMutableDictionary *context))block arguments:(NSArray *)arguments
To
+ (NSExpression * _Nonnull)expressionForBlock:(id  _Nonnull (^ _Nonnull)(id _Nullable evaluatedObject, NSArray * _Nonnull expressions, NSMutableDictionary * _Nullable context))block arguments:(NSArray<NSExpression *> * _Nullable)arguments

Designated Initializer
From--
Toyes

NSFileCoordinator.h

Declaration
From
- (void)coordinateAccessWithIntents:(NSArray *)intents queue:(NSOperationQueue *)queue byAccessor:(void (^)(NSError *error))accessor
To
- (void)coordinateAccessWithIntents:(NSArray<NSFileAccessIntent *> * _Nonnull)intents queue:(NSOperationQueue * _Nonnull)queue byAccessor:(void (^ _Nonnull)(NSError * _Nullable error))accessor

Declaration
From
+ (NSArray *)filePresenters
To
+ (NSArray<id<NSFilePresenter>> * _Nonnull)filePresenters

Declaration
From
- (void)prepareForReadingItemsAtURLs:(NSArray *)readingURLs options:(NSFileCoordinatorReadingOptions)readingOptions writingItemsAtURLs:(NSArray *)writingURLs options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (^)(void (^completionHandler)(void)))batchAccessor
To
- (void)prepareForReadingItemsAtURLs:(NSArray<NSURL *> * _Nonnull)readingURLs options:(NSFileCoordinatorReadingOptions)readingOptions writingItemsAtURLs:(NSArray<NSURL *> * _Nonnull)writingURLs options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError * _Nullable * _Nullable)outError byAccessor:(void (^ _Nonnull)(void (^ _Nonnull)(void) completionHandler))batchAccessor

NSFileHandle.h

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

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

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

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

NSFileManager.h

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

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

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

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

Declaration
From
- (NSArray *)componentsToDisplayForPath:(NSString *)path
To
- (NSArray<NSString *> * _Nullable)componentsToDisplayForPath:(NSString * _Nonnull)path

Declaration
From
- (NSArray *)contentsOfDirectoryAtPath:(NSString *)path error:(NSError **)error
To
- (NSArray<NSString *> * _Nullable)contentsOfDirectoryAtPath:(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error

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

Declaration
From
- (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary *)attributes error:(NSError **)error
To
- (BOOL)createDirectoryAtPath:(NSString * _Nonnull)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary<NSString *,id> * _Nullable)attributes error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)createDirectoryAtURL:(NSURL *)url withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary *)attributes error:(NSError **)error
To
- (BOOL)createDirectoryAtURL:(NSURL * _Nonnull)url withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary<NSString *,id> * _Nullable)attributes error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)data attributes:(NSDictionary *)attr
To
- (BOOL)createFileAtPath:(NSString * _Nonnull)path contents:(NSData * _Nullable)data attributes:(NSDictionary<NSString *,id> * _Nullable)attr

Declaration
From
- (NSDirectoryEnumerator *)enumeratorAtPath:(NSString *)path
To
- (NSDirectoryEnumerator<NSString *> * _Nullable)enumeratorAtPath:(NSString * _Nonnull)path

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

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

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

Declaration
From
- (NSArray *)subpathsAtPath:(NSString *)path
To
- (NSArray<NSString *> * _Nullable)subpathsAtPath:(NSString * _Nonnull)path

Declaration
From
- (NSArray *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error
To
- (NSArray<NSString *> * _Nullable)subpathsOfDirectoryAtPath:(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSArray *)URLsForDirectory:(NSSearchPathDirectory)directory inDomains:(NSSearchPathDomainMask)domainMask
To
- (NSArray<NSURL *> * _Nonnull)URLsForDirectory:(NSSearchPathDirectory)directory inDomains:(NSSearchPathDomainMask)domainMask

NSFilePresenter.h

Declaration
From
- (void)relinquishPresentedItemToReader:(void (^)(void (^reacquirer)(void)))reader
To
- (void)relinquishPresentedItemToReader:(void (^ _Nonnull)(void (^ _Nullable)(void) reacquirer))reader

Declaration
From
- (void)relinquishPresentedItemToWriter:(void (^)(void (^reacquirer)(void)))writer
To
- (void)relinquishPresentedItemToWriter:(void (^ _Nonnull)(void (^ _Nullable)(void) reacquirer))writer

NSFileVersion.h

Declaration
From
+ (void)getNonlocalVersionsOfItemAtURL:(NSURL *)url completionHandler:(void (^)(NSArray *nonlocalFileVersions, NSError *error))completionHandler
To
+ (void)getNonlocalVersionsOfItemAtURL:(NSURL * _Nonnull)url completionHandler:(void (^ _Nonnull)(NSArray<NSFileVersion *> * _Nullable nonlocalFileVersions, NSError * _Nullable error))completionHandler

Declaration
From
+ (NSArray *)otherVersionsOfItemAtURL:(NSURL *)url
To
+ (NSArray<NSFileVersion *> * _Nullable)otherVersionsOfItemAtURL:(NSURL * _Nonnull)url

Declaration
From
+ (NSArray *)unresolvedConflictVersionsOfItemAtURL:(NSURL *)url
To
+ (NSArray<NSFileVersion *> * _Nullable)unresolvedConflictVersionsOfItemAtURL:(NSURL * _Nonnull)url

NSFileWrapper.h

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

Declaration
From
@property(readonly, copy) NSDictionary *fileWrappers
To
@property(readonly, copy, nullable) NSDictionary<NSString *,NSFileWrapper *> *fileWrappers

Declaration
From
- (instancetype)initDirectoryWithFileWrappers:(NSDictionary *)childrenByPreferredName
To
- (instancetype _Nonnull)initDirectoryWithFileWrappers:(NSDictionary<NSString *,NSFileWrapper *> * _Nonnull)childrenByPreferredName

NSFormatter.h

Declaration
From
- (NSAttributedString *)attributedStringForObjectValue:(id)obj withDefaultAttributes:(NSDictionary *)attrs
To
- (NSAttributedString * _Nullable)attributedStringForObjectValue:(id _Nonnull)obj withDefaultAttributes:(NSDictionary<NSString *,id> * _Nullable)attrs

NSHashTable.h

Declaration
From
- (void)addObject:(id)object
To
- (void)addObject:(ObjectType _Nullable)object

Declaration
From
@property(readonly, copy) NSArray *allObjects
To
@property(readonly, copy, nonnull) NSArray<ObjectType> *allObjects

Declaration
From
@property(nonatomic, readonly) id anyObject
To
@property(nonatomic, readonly, nullable) ObjectType anyObject

Declaration
From
- (BOOL)containsObject:(id)anObject
To
- (BOOL)containsObject:(ObjectType _Nullable)anObject

Declaration
From
+ (NSHashTable *)hashTableWithOptions:(NSPointerFunctionsOptions)options
To
+ (NSHashTable<ObjectType> * _Nonnull)hashTableWithOptions:(NSPointerFunctionsOptions)options

Declaration
From
- (void)intersectHashTable:(NSHashTable *)other
To
- (void)intersectHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)intersectsHashTable:(NSHashTable *)other
To
- (BOOL)intersectsHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)isEqualToHashTable:(NSHashTable *)other
To
- (BOOL)isEqualToHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)isSubsetOfHashTable:(NSHashTable *)other
To
- (BOOL)isSubsetOfHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
- (id)member:(id)object
To
- (ObjectType _Nullable)member:(ObjectType _Nullable)object

Declaration
From
- (void)minusHashTable:(NSHashTable *)other
To
- (void)minusHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (void)removeObject:(id)object
To
- (void)removeObject:(ObjectType _Nullable)object

Declaration
From
@property(readonly, copy) NSSet *setRepresentation
To
@property(readonly, copy, nonnull) NSSet<ObjectType> *setRepresentation

Declaration
From
- (void)unionHashTable:(NSHashTable *)other
To
- (void)unionHashTable:(NSHashTable<ObjectType> * _Nonnull)other

Declaration
From
+ (NSHashTable *)weakObjectsHashTable
To
+ (NSHashTable<ObjectType> * _Nonnull)weakObjectsHashTable

NSHTTPCookie.h

Declaration
From
+ (NSArray *)cookiesWithResponseHeaderFields:(NSDictionary *)headerFields forURL:(NSURL *)URL
To
+ (NSArray<NSHTTPCookie *> * _Nonnull)cookiesWithResponseHeaderFields:(NSDictionary<NSString *,NSString *> * _Nonnull)headerFields forURL:(NSURL * _Nonnull)URL

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

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

Declaration
From
@property(readonly, copy) NSArray *portList
To
@property(readonly, copy, nullable) NSArray<NSNumber *> *portList

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

Declaration
From
+ (NSDictionary *)requestHeaderFieldsWithCookies:(NSArray *)cookies
To
+ (NSDictionary<NSString *,NSString *> * _Nonnull)requestHeaderFieldsWithCookies:(NSArray<NSHTTPCookie *> * _Nonnull)cookies

NSHTTPCookieStorage.h

Declaration
From
@property(readonly, copy) NSArray *cookies
To
@property(readonly, copy, nullable) NSArray<NSHTTPCookie *> *cookies

Declaration
From
- (NSArray *)cookiesForURL:(NSURL *)URL
To
- (NSArray<NSHTTPCookie *> * _Nullable)cookiesForURL:(NSURL * _Nonnull)URL

Declaration
From
- (void)getCookiesForTask:(NSURLSessionTask *)task completionHandler:(void (^)(NSArray *cookies))completionHandler
To
- (void)getCookiesForTask:(NSURLSessionTask * _Nonnull)task completionHandler:(void (^ _Nonnull)(NSArray<NSHTTPCookie *> * _Nullable cookies))completionHandler

Declaration
From
- (void)setCookies:(NSArray *)cookies forURL:(NSURL *)URL mainDocumentURL:(NSURL *)mainDocumentURL
To
- (void)setCookies:(NSArray<NSHTTPCookie *> * _Nonnull)cookies forURL:(NSURL * _Nullable)URL mainDocumentURL:(NSURL * _Nullable)mainDocumentURL

Declaration
From
- (NSArray *)sortedCookiesUsingDescriptors:(NSArray *)sortOrder
To
- (NSArray<NSHTTPCookie *> * _Nonnull)sortedCookiesUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortOrder

Declaration
From
- (void)storeCookies:(NSArray *)cookies forTask:(NSURLSessionTask *)task
To
- (void)storeCookies:(NSArray<NSHTTPCookie *> * _Nonnull)cookies forTask:(NSURLSessionTask * _Nonnull)task

NSIndexPath.h

Added NSIndexPath(NSDeprecated)
Deprecation
From--
ToiOS 9.0

NSItemProvider.h

NSKeyedArchiver.h

Declaration
From
- (Class)unarchiver:(NSKeyedUnarchiver *)unarchiver cannotDecodeObjectOfClassName:(NSString *)name originalClasses:(NSArray *)classNames
To
- (Class _Nullable)unarchiver:(NSKeyedUnarchiver * _Nonnull)unarchiver cannotDecodeObjectOfClassName:(NSString * _Nonnull)name originalClasses:(NSArray<NSString *> * _Nonnull)classNames

Declaration
From
+ (NSArray *)classFallbacksForKeyedArchiver
To
+ (NSArray<NSString *> * _Nonnull)classFallbacksForKeyedArchiver

NSKeyValueCoding.h

Declaration
From
- (id)valueForKey:(NSString *)key
To
- (ObjectType _Nullable)valueForKey:(NSString * _Nonnull)key

Declaration
From
- (void)setValue:(id)value forKey:(NSString *)key
To
- (void)setValue:(ObjectType _Nullable)value forKey:(NSString * _Nonnull)key

Declaration
From
- (NSDictionary *)dictionaryWithValuesForKeys:(NSArray *)keys
To
- (NSDictionary<NSString *,id> * _Nonnull)dictionaryWithValuesForKeys:(NSArray<NSString *> * _Nonnull)keys

Declaration
From
- (void)setValuesForKeysWithDictionary:(NSDictionary *)keyedValues
To
- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> * _Nonnull)keyedValues

NSKeyValueObserving.h

Declaration
From
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key
To
+ (NSSet<NSString *> * _Nonnull)keyPathsForValuesAffectingValueForKey:(NSString * _Nonnull)key

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

NSLinguisticTagger.h

Declaration
From
+ (NSArray *)availableTagSchemesForLanguage:(NSString *)language
To
+ (NSArray<NSString *> * _Nonnull)availableTagSchemesForLanguage:(NSString * _Nonnull)language

Declaration
From
- (instancetype)initWithTagSchemes:(NSArray *)tagSchemes options:(NSUInteger)opts
To
- (instancetype _Nonnull)initWithTagSchemes:(NSArray<NSString *> * _Nonnull)tagSchemes options:(NSUInteger)opts

Declaration
From
- (NSArray *)possibleTagsAtIndex:(NSUInteger)charIndex scheme:(NSString *)tagScheme tokenRange:(NSRangePointer)tokenRange sentenceRange:(NSRangePointer)sentenceRange scores:(NSArray **)scores
To
- (NSArray<NSString *> * _Nullable)possibleTagsAtIndex:(NSUInteger)charIndex scheme:(NSString * _Nonnull)tagScheme tokenRange:(NSRangePointer _Nullable)tokenRange sentenceRange:(NSRangePointer _Nullable)sentenceRange scores:(NSArray<NSValue *> * _Nullable * _Nullable)scores

Declaration
From
@property(readonly, copy) NSArray *tagSchemes
To
@property(readonly, copy, nonnull) NSArray<NSString *> *tagSchemes

Declaration
From
- (NSArray *)tagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts tokenRanges:(NSArray **)tokenRanges
To
- (NSArray<NSString *> * _Nonnull)tagsInRange:(NSRange)range scheme:(NSString * _Nonnull)tagScheme options:(NSLinguisticTaggerOptions)opts tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges

Declaration
From
- (NSArray *)linguisticTagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts orthography:(NSOrthography *)orthography tokenRanges:(NSArray **)tokenRanges
To
- (NSArray<NSString *> * _Nonnull)linguisticTagsInRange:(NSRange)range scheme:(NSString * _Nonnull)tagScheme options:(NSLinguisticTaggerOptions)opts orthography:(NSOrthography * _Nullable)orthography tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges

NSLocale.h

Declaration
From
+ (NSArray *)availableLocaleIdentifiers
To
+ (NSArray<NSString *> * _Nonnull)availableLocaleIdentifiers

Declaration
From
+ (NSArray *)commonISOCurrencyCodes
To
+ (NSArray<NSString *> * _Nonnull)commonISOCurrencyCodes

Declaration
From
+ (NSDictionary *)componentsFromLocaleIdentifier:(NSString *)string
To
+ (NSDictionary<NSString *,NSString *> * _Nonnull)componentsFromLocaleIdentifier:(NSString * _Nonnull)string

Declaration
From
+ (NSArray *)ISOCountryCodes
To
+ (NSArray<NSString *> * _Nonnull)ISOCountryCodes

Declaration
From
+ (NSArray *)ISOCurrencyCodes
To
+ (NSArray<NSString *> * _Nonnull)ISOCurrencyCodes

Declaration
From
+ (NSArray *)ISOLanguageCodes
To
+ (NSArray<NSString *> * _Nonnull)ISOLanguageCodes

Declaration
From
+ (NSString *)localeIdentifierFromComponents:(NSDictionary *)dict
To
+ (NSString * _Nonnull)localeIdentifierFromComponents:(NSDictionary<NSString *,NSString *> * _Nonnull)dict

Declaration
From
+ (NSArray *)preferredLanguages
To
+ (NSArray<NSString *> * _Nonnull)preferredLanguages

NSMapTable.h

Declaration
From
- (NSDictionary *)dictionaryRepresentation
To
- (NSDictionary<KeyType,ObjectType> * _Nonnull)dictionaryRepresentation

Declaration
From
- (NSEnumerator *)keyEnumerator
To
- (NSEnumerator<KeyType> * _Nonnull)keyEnumerator

Declaration
From
+ (NSMapTable *)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions
To
+ (NSMapTable<KeyType,ObjectType> * _Nonnull)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nullable)objectEnumerator

Declaration
From
- (id)objectForKey:(id)aKey
To
- (ObjectType _Nullable)objectForKey:(KeyType _Nullable)aKey

Declaration
From
- (void)removeObjectForKey:(id)aKey
To
- (void)removeObjectForKey:(KeyType _Nullable)aKey

Declaration
From
- (void)setObject:(id)anObject forKey:(id)aKey
To
- (void)setObject:(ObjectType _Nullable)anObject forKey:(KeyType _Nullable)aKey

Declaration
From
+ (NSMapTable *)strongToStrongObjectsMapTable
To
+ (NSMapTable<KeyType,ObjectType> * _Nonnull)strongToStrongObjectsMapTable

Declaration
From
+ (NSMapTable *)strongToWeakObjectsMapTable
To
+ (NSMapTable<KeyType,ObjectType> * _Nonnull)strongToWeakObjectsMapTable

Declaration
From
+ (NSMapTable *)weakToStrongObjectsMapTable
To
+ (NSMapTable<KeyType,ObjectType> * _Nonnull)weakToStrongObjectsMapTable

Declaration
From
+ (NSMapTable *)weakToWeakObjectsMapTable
To
+ (NSMapTable<KeyType,ObjectType> * _Nonnull)weakToWeakObjectsMapTable

NSMetadata.h

Declaration
From
@property(readonly, copy) NSArray *attributes
To
@property(readonly, copy, nonnull) NSArray<NSString *> *attributes

Declaration
From
- (NSDictionary *)valuesForAttributes:(NSArray *)keys
To
- (NSDictionary<NSString *,id> * _Nullable)valuesForAttributes:(NSArray<NSString *> * _Nonnull)keys

Declaration
From
@property(readonly, copy) NSArray *groupedResults
To
@property(readonly, copy, nonnull) NSArray<NSMetadataQueryResultGroup *> *groupedResults

Declaration
From
@property(copy) NSArray *groupingAttributes
To
@property(copy, nullable) NSArray<NSString *> *groupingAttributes

Declaration
From
@property(copy) NSArray *sortDescriptors
To
@property(copy, nonnull) NSArray<NSSortDescriptor *> *sortDescriptors

Declaration
From
@property(copy) NSArray *valueListAttributes
To
@property(copy, nonnull) NSArray<NSString *> *valueListAttributes

Declaration
From
@property(readonly, copy) NSDictionary *valueLists
To
@property(readonly, copy, nonnull) NSDictionary<NSString *,NSArray<NSMetadataQueryAttributeValueTuple *> *> *valueLists

Declaration
From
@property(readonly, copy) NSArray *subgroups
To
@property(readonly, copy, nullable) NSArray<NSMetadataQueryResultGroup *> *subgroups

NSNetServices.h

Declaration
From
@property(readonly, copy) NSArray *addresses
To
@property(readonly, copy, nullable) NSArray<NSData *> *addresses

Declaration
From
+ (NSData *)dataFromTXTRecordDictionary:(NSDictionary *)txtDictionary
To
+ (NSData * _Nonnull)dataFromTXTRecordDictionary:(NSDictionary<NSString *,NSData *> * _Nonnull)txtDictionary

Declaration
From
+ (NSDictionary *)dictionaryFromTXTRecordData:(NSData *)txtData
To
+ (NSDictionary<NSString *,NSData *> * _Nonnull)dictionaryFromTXTRecordData:(NSData * _Nonnull)txtData

Designated Initializer
From--
Toyes

Declaration
From
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didFindDomain:(NSString *)domainString moreComing:(BOOL)moreComing
To
- (void)netServiceBrowser:(NSNetServiceBrowser * _Nonnull)browser didFindDomain:(NSString * _Nonnull)domainString moreComing:(BOOL)moreComing

Declaration
From
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didFindService:(NSNetService *)aNetService moreComing:(BOOL)moreComing
To
- (void)netServiceBrowser:(NSNetServiceBrowser * _Nonnull)browser didFindService:(NSNetService * _Nonnull)service moreComing:(BOOL)moreComing

Declaration
From
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didNotSearch:(NSDictionary *)errorDict
To
- (void)netServiceBrowser:(NSNetServiceBrowser * _Nonnull)browser didNotSearch:(NSDictionary<NSString *,NSNumber *> * _Nonnull)errorDict

Declaration
From
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didRemoveDomain:(NSString *)domainString moreComing:(BOOL)moreComing
To
- (void)netServiceBrowser:(NSNetServiceBrowser * _Nonnull)browser didRemoveDomain:(NSString * _Nonnull)domainString moreComing:(BOOL)moreComing

Declaration
From
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser didRemoveService:(NSNetService *)aNetService moreComing:(BOOL)moreComing
To
- (void)netServiceBrowser:(NSNetServiceBrowser * _Nonnull)browser didRemoveService:(NSNetService * _Nonnull)service moreComing:(BOOL)moreComing

Declaration
From
- (void)netServiceBrowserDidStopSearch:(NSNetServiceBrowser *)aNetServiceBrowser
To
- (void)netServiceBrowserDidStopSearch:(NSNetServiceBrowser * _Nonnull)browser

Declaration
From
- (void)netServiceBrowserWillSearch:(NSNetServiceBrowser *)aNetServiceBrowser
To
- (void)netServiceBrowserWillSearch:(NSNetServiceBrowser * _Nonnull)browser

Declaration
From
- (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary *)errorDict
To
- (void)netService:(NSNetService * _Nonnull)sender didNotPublish:(NSDictionary<NSString *,NSNumber *> * _Nonnull)errorDict

Declaration
From
- (void)netService:(NSNetService *)sender didNotResolve:(NSDictionary *)errorDict
To
- (void)netService:(NSNetService * _Nonnull)sender didNotResolve:(NSDictionary<NSString *,NSNumber *> * _Nonnull)errorDict

NSNotificationQueue.h

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

NSNumberFormatter.h

Declaration
From
@property(copy) NSDictionary *textAttributesForNegativeInfinity
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForNegativeInfinity

Declaration
From
@property(copy) NSDictionary *textAttributesForNegativeValues
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForNegativeValues

Declaration
From
@property(copy) NSDictionary *textAttributesForNil
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForNil

Declaration
From
@property(copy) NSDictionary *textAttributesForNotANumber
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForNotANumber

Declaration
From
@property(copy) NSDictionary *textAttributesForPositiveInfinity
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForPositiveInfinity

Declaration
From
@property(copy) NSDictionary *textAttributesForPositiveValues
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForPositiveValues

Declaration
From
@property(copy) NSDictionary *textAttributesForZero
To
@property(copy, nullable) NSDictionary<NSString *,id> *textAttributesForZero

NSObjCRuntime.h

Removed NSNotFound
Modified #def NS_DESIGNATED_INITIALIZER
Header
FromFoundation/NSObjCRuntime.h
Toobjc/NSObjCRuntime.h

NSObject.h

Declaration
From
- (id)initWithCoder:(NSCoder *)aDecoder
To
- (instancetype _Nullable)initWithCoder:(NSCoder * _Nonnull)aDecoder

NSOperation.h

Removed NSOperationQueueDefaultMaxConcurrentOperationCount
Declaration
From
@property(readonly, copy) NSArray *executionBlocks
To
@property(readonly, copy, nonnull) NSArray<void (^executionBlocks)(void)> *

Declaration
From
@property(readonly, copy) NSArray *dependencies
To
@property(readonly, copy, nonnull) NSArray<NSOperation *> *dependencies

Declaration
From
- (void)addOperations:(NSArray *)ops waitUntilFinished:(BOOL)wait
To
- (void)addOperations:(NSArray<NSOperation *> * _Nonnull)ops waitUntilFinished:(BOOL)wait

Declaration
From
@property(readonly, copy) NSArray *operations
To
@property(readonly, copy, nonnull) NSArray<__kindof NSOperation *> *operations

NSOrderedSet.h

Declaration
From
- (void)addObject:(id)object
To
- (void)addObject:(ObjectType _Nonnull)object

Declaration
From
- (void)addObjects:(const id [])objects count:(NSUInteger)count
To
- (void)addObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)count

Declaration
From
- (void)addObjectsFromArray:(NSArray *)array
To
- (void)addObjectsFromArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (void)insertObject:(id)object atIndex:(NSUInteger)idx
To
- (void)insertObject:(ObjectType _Nonnull)object atIndex:(NSUInteger)idx

Declaration
From
- (void)insertObjects:(NSArray *)objects atIndexes:(NSIndexSet *)indexes
To
- (void)insertObjects:(NSArray<ObjectType> * _Nonnull)objects atIndexes:(NSIndexSet * _Nonnull)indexes

Declaration
From
- (void)intersectOrderedSet:(NSOrderedSet *)other
To
- (void)intersectOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (void)intersectSet:(NSSet *)other
To
- (void)intersectSet:(NSSet<ObjectType> * _Nonnull)other

Declaration
From
- (void)minusOrderedSet:(NSOrderedSet *)other
To
- (void)minusOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (void)minusSet:(NSSet *)other
To
- (void)minusSet:(NSSet<ObjectType> * _Nonnull)other

Declaration
From
- (void)removeObject:(id)object
To
- (void)removeObject:(ObjectType _Nonnull)object

Declaration
From
- (void)removeObjectsInArray:(NSArray *)array
To
- (void)removeObjectsInArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(id)object
To
- (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(ObjectType _Nonnull)object

Declaration
From
- (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray *)objects
To
- (void)replaceObjectsAtIndexes:(NSIndexSet * _Nonnull)indexes withObjects:(NSArray<ObjectType> * _Nonnull)objects

Declaration
From
- (void)replaceObjectsInRange:(NSRange)range withObjects:(const id [])objects count:(NSUInteger)count
To
- (void)replaceObjectsInRange:(NSRange)range withObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)count

Declaration
From
- (void)setObject:(id)obj atIndex:(NSUInteger)idx
To
- (void)setObject:(ObjectType _Nonnull)obj atIndex:(NSUInteger)idx

Declaration
From
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx
To
- (void)setObject:(ObjectType _Nonnull)obj atIndexedSubscript:(NSUInteger)idx

Declaration
From
- (void)unionOrderedSet:(NSOrderedSet *)other
To
- (void)unionOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (void)unionSet:(NSSet *)other
To
- (void)unionSet:(NSSet<ObjectType> * _Nonnull)other

Declaration
From
@property(readonly, copy) NSArray *array
To
@property(readonly, strong, nonnull) NSArray<ObjectType> *array

Declaration
From
- (BOOL)containsObject:(id)object
To
- (BOOL)containsObject:(ObjectType _Nonnull)object

Declaration
From
- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsUsingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block
To
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))block

Declaration
From
@property(nonatomic, readonly) id firstObject
To
@property(nonatomic, readonly, nullable) ObjectType firstObject

Declaration
From
- (void)getObjects:(id [])objects range:(NSRange)range
To
- (void)getObjects:(ObjectType  _Nonnull [])objects range:(NSRange)range

Declaration
From
- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsPassingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSIndexSet * _Nonnull)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObject:(id)object
To
- (NSUInteger)indexOfObject:(ObjectType _Nonnull)object

Declaration
From
- (NSUInteger)indexOfObject:(id)object inSortedRange:(NSRange)range options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator)cmp
To
- (NSUInteger)indexOfObject:(ObjectType _Nonnull)object inSortedRange:(NSRange)range options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator _Nonnull)cmp

Declaration
From
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet * _Nonnull)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate
To
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop))predicate

Declaration
From
- (instancetype)initWithArray:(NSArray *)array
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (instancetype)initWithArray:(NSArray *)set copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)set copyItems:(BOOL)flag

Declaration
From
- (instancetype)initWithArray:(NSArray *)set range:(NSRange)range copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)set range:(NSRange)range copyItems:(BOOL)flag

Declaration
From
- (instancetype)initWithObject:(id)object
To
- (instancetype _Nonnull)initWithObject:(ObjectType _Nonnull)object

Declaration
From
- (instancetype)initWithObjects:(id)firstObj, ...
To
- (instancetype _Nonnull)initWithObjects:(ObjectType _Nonnull)firstObj, ...

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

Declaration
From
- (instancetype)initWithOrderedSet:(NSOrderedSet *)set
To
- (instancetype _Nonnull)initWithOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)set

Declaration
From
- (instancetype)initWithOrderedSet:(NSOrderedSet *)set copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)set copyItems:(BOOL)flag

Declaration
From
- (instancetype)initWithOrderedSet:(NSOrderedSet *)set range:(NSRange)range copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)set range:(NSRange)range copyItems:(BOOL)flag

Declaration
From
- (instancetype)initWithSet:(NSSet *)set
To
- (instancetype _Nonnull)initWithSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
- (instancetype)initWithSet:(NSSet *)set copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithSet:(NSSet<ObjectType> * _Nonnull)set copyItems:(BOOL)flag

Declaration
From
- (BOOL)intersectsOrderedSet:(NSOrderedSet *)other
To
- (BOOL)intersectsOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)intersectsSet:(NSSet *)set
To
- (BOOL)intersectsSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
- (BOOL)isEqualToOrderedSet:(NSOrderedSet *)other
To
- (BOOL)isEqualToOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)isSubsetOfOrderedSet:(NSOrderedSet *)other
To
- (BOOL)isSubsetOfOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)other

Declaration
From
- (BOOL)isSubsetOfSet:(NSSet *)set
To
- (BOOL)isSubsetOfSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
@property(nonatomic, readonly) id lastObject
To
@property(nonatomic, readonly, nullable) ObjectType lastObject

Declaration
From
- (id)objectAtIndex:(NSUInteger)idx
To
- (ObjectType _Nonnull)objectAtIndex:(NSUInteger)idx

Declaration
From
- (id)objectAtIndexedSubscript:(NSUInteger)idx
To
- (ObjectType _Nonnull)objectAtIndexedSubscript:(NSUInteger)idx

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (NSArray *)objectsAtIndexes:(NSIndexSet *)indexes
To
- (NSArray<ObjectType> * _Nonnull)objectsAtIndexes:(NSIndexSet * _Nonnull)indexes

Declaration
From
+ (instancetype)orderedSetWithArray:(NSArray *)array
To
+ (instancetype _Nonnull)orderedSetWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
+ (instancetype)orderedSetWithArray:(NSArray *)array range:(NSRange)range copyItems:(BOOL)flag
To
+ (instancetype _Nonnull)orderedSetWithArray:(NSArray<ObjectType> * _Nonnull)array range:(NSRange)range copyItems:(BOOL)flag

Declaration
From
+ (instancetype)orderedSetWithObject:(id)object
To
+ (instancetype _Nonnull)orderedSetWithObject:(ObjectType _Nonnull)object

Declaration
From
+ (instancetype)orderedSetWithObjects:(id)firstObj, ...
To
+ (instancetype _Nonnull)orderedSetWithObjects:(ObjectType _Nonnull)firstObj, ...

Declaration
From
+ (instancetype)orderedSetWithObjects:(const id [])objects count:(NSUInteger)cnt
To
+ (instancetype _Nonnull)orderedSetWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt

Declaration
From
+ (instancetype)orderedSetWithOrderedSet:(NSOrderedSet *)set
To
+ (instancetype _Nonnull)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)set

Declaration
From
+ (instancetype)orderedSetWithOrderedSet:(NSOrderedSet *)set range:(NSRange)range copyItems:(BOOL)flag
To
+ (instancetype _Nonnull)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> * _Nonnull)set range:(NSRange)range copyItems:(BOOL)flag

Declaration
From
+ (instancetype)orderedSetWithSet:(NSSet *)set
To
+ (instancetype _Nonnull)orderedSetWithSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
+ (instancetype)orderedSetWithSet:(NSSet *)set copyItems:(BOOL)flag
To
+ (instancetype _Nonnull)orderedSetWithSet:(NSSet<ObjectType> * _Nonnull)set copyItems:(BOOL)flag

Declaration
From
@property(readonly, copy) NSOrderedSet *reversedOrderedSet
To
@property(readonly, copy, nonnull) NSOrderedSet<ObjectType> *reversedOrderedSet

Declaration
From
- (NSEnumerator *)reverseObjectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)reverseObjectEnumerator

Declaration
From
@property(readonly, copy) NSSet *set
To
@property(readonly, strong, nonnull) NSSet<ObjectType> *set

Declaration
From
- (NSArray *)sortedArrayUsingComparator:(NSComparator)cmptr
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingComparator:(NSComparator _Nonnull)cmptr

Declaration
From
- (NSArray *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator)cmptr
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator _Nonnull)cmptr

NSOrthography.h

Declaration
From
@property(readonly, copy) NSArray *allLanguages
To
@property(readonly, copy, nonnull) NSArray<NSString *> *allLanguages

Declaration
From
@property(readonly, copy) NSArray *allScripts
To
@property(readonly, copy, nonnull) NSArray<NSString *> *allScripts

Declaration
From
- (instancetype)initWithDominantScript:(NSString *)script languageMap:(NSDictionary *)map
To
- (instancetype _Nonnull)initWithDominantScript:(NSString * _Nonnull)script languageMap:(NSDictionary<NSString *,NSArray<NSString *> *> * _Nonnull)map

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

Declaration
From
- (NSArray *)languagesForScript:(NSString *)script
To
- (NSArray<NSString *> * _Nullable)languagesForScript:(NSString * _Nonnull)script

Declaration
From
+ (instancetype)orthographyWithDominantScript:(NSString *)script languageMap:(NSDictionary *)map
To
+ (instancetype _Nonnull)orthographyWithDominantScript:(NSString * _Nonnull)script languageMap:(NSDictionary<NSString *,NSArray<NSString *> *> * _Nonnull)map

NSPathUtilities.h

Declaration
From
- (NSArray *)pathsMatchingExtensions:(NSArray *)filterTypes
To
- (NSArray<NSString *> * _Nonnull)pathsMatchingExtensions:(NSArray<NSString *> * _Nonnull)filterTypes

Declaration
From
- (NSUInteger)completePathIntoString:(NSString **)outputName caseSensitive:(BOOL)flag matchesIntoArray:(NSArray **)outputArray filterTypes:(NSArray *)filterTypes
To
- (NSUInteger)completePathIntoString:(NSString * _Nonnull * _Nullable)outputName caseSensitive:(BOOL)flag matchesIntoArray:(NSArray<NSString *> * _Nonnull * _Nullable)outputArray filterTypes:(NSArray<NSString *> * _Nullable)filterTypes

Declaration
From
@property(readonly, copy) NSArray *pathComponents
To
@property(readonly, copy, nonnull) NSArray<NSString *> *pathComponents

Declaration
From
+ (NSString *)pathWithComponents:(NSArray *)components
To
+ (NSString * _Nonnull)pathWithComponents:(NSArray<NSString *> * _Nonnull)components

Declaration
From
- (NSArray *)stringsByAppendingPaths:(NSArray *)paths
To
- (NSArray<NSString *> * _Nonnull)stringsByAppendingPaths:(NSArray<NSString *> * _Nonnull)paths

Declaration
From
NSArray * NSSearchPathForDirectoriesInDomains (
    NSSearchPathDirectory directory,
    NSSearchPathDomainMask domainMask,
    BOOL expandTilde
);
To
NSArray<NSString *> * _Nonnull NSSearchPathForDirectoriesInDomains (
    NSSearchPathDirectory directory,
    NSSearchPathDomainMask domainMask,
    BOOL expandTilde
);

NSPersonNameComponents.h (Added)

NSPersonNameComponentsFormatter.h (Added)

NSPointerFunctions.h

Declaration
From
@property void *(*acquireFunction)(const void *src, NSUInteger (*size)(const void *item), BOOL shouldCopy)
To
@property(nonnull) void * (* _Nullable)(const void * _Nonnull src, NSUInteger (* _Nullablesize)(const void * _Nonnull item), BOOL shouldCopy) acquireFunction

Declaration
From
@property NSString *(*descriptionFunction)(const void *item)
To
@property(nullable) NSString * (* _Nullable)(const void * _Nonnull item) descriptionFunction

NSPort.h

Designated Initializer
From--
Toyes

Declaration
From
- (instancetype)initWithMachPort:(uint32_t)machPort options:(NSUInteger)f
To
- (instancetype _Nonnull)initWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f

Declaration
From
+ (NSPort *)portWithMachPort:(uint32_t)machPort options:(NSUInteger)f
To
+ (NSPort * _Nonnull)portWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f

NSPredicate.h

Declaration
From
- (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)predicate
To
- (NSArray<ObjectType> * _Nonnull)filteredArrayUsingPredicate:(NSPredicate * _Nonnull)predicate

Declaration
From
- (NSOrderedSet *)filteredOrderedSetUsingPredicate:(NSPredicate *)p
To
- (NSOrderedSet<ObjectType> * _Nonnull)filteredOrderedSetUsingPredicate:(NSPredicate * _Nonnull)p

Declaration
From
- (BOOL)evaluateWithObject:(id)object substitutionVariables:(NSDictionary *)bindings
To
- (BOOL)evaluateWithObject:(id _Nullable)object substitutionVariables:(NSDictionary<NSString *,id> * _Nullable)bindings

Declaration
From
+ (NSPredicate *)predicateWithBlock:(BOOL (^)(id evaluatedObject, NSDictionary *bindings))block
To
+ (NSPredicate * _Nonnull)predicateWithBlock:(BOOL (^ _Nonnull)(id _Nonnull evaluatedObject, NSDictionary<NSString *,id> * _Nullable bindings))block

Declaration
From
- (instancetype)predicateWithSubstitutionVariables:(NSDictionary *)variables
To
- (instancetype _Nonnull)predicateWithSubstitutionVariables:(NSDictionary<NSString *,id> * _Nonnull)variables

Declaration
From
- (NSSet *)filteredSetUsingPredicate:(NSPredicate *)predicate
To
- (NSSet<ObjectType> * _Nonnull)filteredSetUsingPredicate:(NSPredicate * _Nonnull)predicate

NSProcessInfo.h

Removed NSProcessInfo()
Added NSProcessInfo(NSProcessInfoActivity)
Added NSProcessInfo(NSProcessInfoPowerState)
Added NSProcessInfo(NSProcessInfoThermalState)
Declaration
From
@property(readonly, copy) NSArray *arguments
To
@property(readonly, copy, nonnull) NSArray<NSString *> *arguments

Declaration
From
@property(readonly, copy) NSDictionary *environment
To
@property(readonly, copy, nonnull) NSDictionary<NSString *,NSString *> *environment

NSProgress.h

NSRegularExpression.h

Declaration
From
- (NSArray *)matchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range
To
- (NSArray<NSTextCheckingResult *> * _Nonnull)matchesInString:(NSString * _Nonnull)string options:(NSMatchingOptions)options range:(NSRange)range

NSRunLoop.h

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

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

NSSet.h

Declaration
From
- (void)addObject:(id)object
To
- (void)addObject:(ObjectType _Nonnull)object

Declaration
From
- (NSUInteger)countForObject:(id)object
To
- (NSUInteger)countForObject:(ObjectType _Nonnull)object

Declaration
From
- (instancetype)initWithArray:(NSArray *)array
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)array

Designated Initializer
From--
Toyes

Declaration
From
- (instancetype)initWithSet:(NSSet *)set
To
- (instancetype _Nonnull)initWithSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (void)removeObject:(id)object
To
- (void)removeObject:(ObjectType _Nonnull)object

Declaration
From
- (void)addObject:(id)object
To
- (void)addObject:(ObjectType _Nonnull)object

Declaration
From
- (void)addObjectsFromArray:(NSArray *)array
To
- (void)addObjectsFromArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (void)intersectSet:(NSSet *)otherSet
To
- (void)intersectSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (void)minusSet:(NSSet *)otherSet
To
- (void)minusSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (void)removeObject:(id)object
To
- (void)removeObject:(ObjectType _Nonnull)object

Declaration
From
- (void)setSet:(NSSet *)otherSet
To
- (void)setSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (void)unionSet:(NSSet *)otherSet
To
- (void)unionSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
@property(readonly, copy) NSArray *allObjects
To
@property(readonly, copy, nonnull) NSArray<ObjectType> *allObjects

Declaration
From
- (id)anyObject
To
- (ObjectType _Nullable)anyObject

Declaration
From
- (BOOL)containsObject:(id)anObject
To
- (BOOL)containsObject:(ObjectType _Nonnull)anObject

Declaration
From
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop))block
To
- (void)enumerateObjectsUsingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, BOOL * _Nonnull stop))block

Declaration
From
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, BOOL *stop))block
To
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^ _Nonnull)(ObjectType _Nonnull obj, BOOL * _Nonnull stop))block

Declaration
From
- (instancetype)initWithArray:(NSArray *)array
To
- (instancetype _Nonnull)initWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
- (instancetype)initWithObjects:(id)firstObj, ...
To
- (instancetype _Nonnull)initWithObjects:(ObjectType _Nonnull)firstObj, ...

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

Declaration
From
- (instancetype)initWithSet:(NSSet *)set
To
- (instancetype _Nonnull)initWithSet:(NSSet<ObjectType> * _Nonnull)set

Declaration
From
- (instancetype)initWithSet:(NSSet *)set copyItems:(BOOL)flag
To
- (instancetype _Nonnull)initWithSet:(NSSet<ObjectType> * _Nonnull)set copyItems:(BOOL)flag

Declaration
From
- (BOOL)intersectsSet:(NSSet *)otherSet
To
- (BOOL)intersectsSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (BOOL)isEqualToSet:(NSSet *)otherSet
To
- (BOOL)isEqualToSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (BOOL)isSubsetOfSet:(NSSet *)otherSet
To
- (BOOL)isSubsetOfSet:(NSSet<ObjectType> * _Nonnull)otherSet

Declaration
From
- (id)member:(id)object
To
- (ObjectType _Nullable)member:(ObjectType _Nonnull)object

Declaration
From
- (NSEnumerator *)objectEnumerator
To
- (NSEnumerator<ObjectType> * _Nonnull)objectEnumerator

Declaration
From
- (NSSet *)objectsPassingTest:(BOOL (^)(id obj, BOOL *stop))predicate
To
- (NSSet<ObjectType> * _Nonnull)objectsPassingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSSet *)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, BOOL *stop))predicate
To
- (NSSet<ObjectType> * _Nonnull)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^ _Nonnull)(ObjectType _Nonnull obj, BOOL * _Nonnull stop))predicate

Declaration
From
- (NSSet *)setByAddingObject:(id)anObject
To
- (NSSet<ObjectType> * _Nonnull)setByAddingObject:(ObjectType _Nonnull)anObject

Declaration
From
- (NSSet *)setByAddingObjectsFromArray:(NSArray *)other
To
- (NSSet<ObjectType> * _Nonnull)setByAddingObjectsFromArray:(NSArray<ObjectType> * _Nonnull)other

Declaration
From
- (NSSet *)setByAddingObjectsFromSet:(NSSet *)other
To
- (NSSet<ObjectType> * _Nonnull)setByAddingObjectsFromSet:(NSSet<ObjectType> * _Nonnull)other

Declaration
From
+ (instancetype)setWithArray:(NSArray *)array
To
+ (instancetype _Nonnull)setWithArray:(NSArray<ObjectType> * _Nonnull)array

Declaration
From
+ (instancetype)setWithObject:(id)object
To
+ (instancetype _Nonnull)setWithObject:(ObjectType _Nonnull)object

Declaration
From
+ (instancetype)setWithObjects:(id)firstObj, ...
To
+ (instancetype _Nonnull)setWithObjects:(ObjectType _Nonnull)firstObj, ...

Declaration
From
+ (instancetype)setWithObjects:(const id [])objects count:(NSUInteger)cnt
To
+ (instancetype _Nonnull)setWithObjects:(const ObjectType  _Nonnull [])objects count:(NSUInteger)cnt

Declaration
From
+ (instancetype)setWithSet:(NSSet *)set
To
+ (instancetype _Nonnull)setWithSet:(NSSet<ObjectType> * _Nonnull)set

NSSortDescriptor.h

Declaration
From
- (NSArray *)sortedArrayUsingDescriptors:(NSArray *)sortDescriptors
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortDescriptors

Declaration
From
- (void)sortUsingDescriptors:(NSArray *)sortDescriptors
To
- (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortDescriptors

Declaration
From
- (void)sortUsingDescriptors:(NSArray *)sortDescriptors
To
- (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortDescriptors

Declaration
From
- (NSArray *)sortedArrayUsingDescriptors:(NSArray *)sortDescriptors
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortDescriptors

Declaration
From
- (NSArray *)sortedArrayUsingDescriptors:(NSArray *)sortDescriptors
To
- (NSArray<ObjectType> * _Nonnull)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> * _Nonnull)sortDescriptors

NSString.h

Declaration
From
- (NSString *)commonPrefixWithString:(NSString *)aString options:(NSStringCompareOptions)mask
To
- (NSString * _Nonnull)commonPrefixWithString:(NSString * _Nonnull)str options:(NSStringCompareOptions)mask

Declaration
From
- (NSArray *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)separator
To
- (NSArray<NSString *> * _Nonnull)componentsSeparatedByCharactersInSet:(NSCharacterSet * _Nonnull)separator

Declaration
From
- (NSArray *)componentsSeparatedByString:(NSString *)separator
To
- (NSArray<NSString *> * _Nonnull)componentsSeparatedByString:(NSString * _Nonnull)separator

Declaration
From
- (BOOL)containsString:(NSString *)aString
To
- (BOOL)containsString:(NSString * _Nonnull)str

Declaration
From
- (void)getCharacters:(unichar *)buffer range:(NSRange)aRange
To
- (void)getCharacters:(unichar * _Nonnull)buffer range:(NSRange)range

Declaration
From
- (BOOL)hasPrefix:(NSString *)aString
To
- (BOOL)hasPrefix:(NSString * _Nonnull)str

Declaration
From
- (BOOL)hasSuffix:(NSString *)aString
To
- (BOOL)hasSuffix:(NSString * _Nonnull)str

Declaration
From
- (BOOL)localizedCaseInsensitiveContainsString:(NSString *)aString
To
- (BOOL)localizedCaseInsensitiveContainsString:(NSString * _Nonnull)str

Declaration
From
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)aSet
To
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet * _Nonnull)searchSet

Declaration
From
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)aSet options:(NSStringCompareOptions)mask
To
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet * _Nonnull)searchSet options:(NSStringCompareOptions)mask

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

Declaration
From
- (NSRange)rangeOfString:(NSString *)aString
To
- (NSRange)rangeOfString:(NSString * _Nonnull)searchString

Declaration
From
- (NSRange)rangeOfString:(NSString *)aString options:(NSStringCompareOptions)mask
To
- (NSRange)rangeOfString:(NSString * _Nonnull)searchString options:(NSStringCompareOptions)mask

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

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

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

NSTextCheckingResult.h

Declaration
From
+ (NSTextCheckingResult *)addressCheckingResultWithRange:(NSRange)range components:(NSDictionary *)components
To
+ (NSTextCheckingResult * _Nonnull)addressCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSString *,NSString *> * _Nonnull)components

Declaration
From
@property(readonly, copy) NSDictionary *addressComponents
To
@property(readonly, copy, nullable) NSDictionary<NSString *,NSString *> *addressComponents

Declaration
From
@property(readonly, copy) NSArray *alternativeStrings
To
@property(readonly, copy, nullable) NSArray<NSString *> *alternativeStrings

Declaration
From
@property(readonly, copy) NSDictionary *components
To
@property(readonly, copy, nullable) NSDictionary<NSString *,NSString *> *components

Declaration
From
+ (NSTextCheckingResult *)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString alternativeStrings:(NSArray *)alternativeStrings
To
+ (NSTextCheckingResult * _Nonnull)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString * _Nonnull)replacementString alternativeStrings:(NSArray<NSString *> * _Nonnull)alternativeStrings

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

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

Declaration
From
+ (NSTextCheckingResult *)transitInformationCheckingResultWithRange:(NSRange)range components:(NSDictionary *)components
To
+ (NSTextCheckingResult * _Nonnull)transitInformationCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSString *,NSString *> * _Nonnull)components

NSThread.h

Declaration
From
- (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wait modes:(NSArray *)array
To
- (void)performSelector:(SEL _Nonnull)aSelector onThread:(NSThread * _Nonnull)thr withObject:(id _Nullable)arg waitUntilDone:(BOOL)wait modes:(NSArray<NSString *> * _Nullable)array

Declaration
From
- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait modes:(NSArray *)array
To
- (void)performSelectorOnMainThread:(SEL _Nonnull)aSelector withObject:(id _Nullable)arg waitUntilDone:(BOOL)wait modes:(NSArray<NSString *> * _Nullable)array

Declaration
From
+ (NSArray *)callStackReturnAddresses
To
+ (NSArray<NSNumber *> * _Nonnull)callStackReturnAddresses

Declaration
From
+ (NSArray *)callStackSymbols
To
+ (NSArray<NSString *> * _Nonnull)callStackSymbols

NSTimeZone.h

Declaration
From
+ (NSDictionary *)abbreviationDictionary
To
+ (NSDictionary<NSString *,NSString *> * _Nonnull)abbreviationDictionary

Declaration
From
+ (NSArray *)knownTimeZoneNames
To
+ (NSArray<NSString *> * _Nonnull)knownTimeZoneNames

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

NSUbiquitousKeyValueStore.h

Declaration
From
- (NSDictionary *)dictionaryForKey:(NSString *)aKey
To
- (NSDictionary<NSString *,id> * _Nullable)dictionaryForKey:(NSString * _Nonnull)aKey

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

Declaration
From
- (void)setDictionary:(NSDictionary *)aDictionary forKey:(NSString *)aKey
To
- (void)setDictionary:(NSDictionary<NSString *,id> * _Nullable)aDictionary forKey:(NSString * _Nonnull)aKey

NSUndoManager.h

Removed NSUndoCloseGroupingRunLoopOrdering
Declaration
From
@property(copy) NSArray *runLoopModes
To
@property(copy, nonnull) NSArray<NSString *> *runLoopModes

NSURL.h

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

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

Declaration
From
+ (NSURL *)fileURLWithPathComponents:(NSArray *)components
To
+ (NSURL * _Nullable)fileURLWithPathComponents:(NSArray<NSString *> * _Nonnull)components

Deprecation
From--
ToiOS 9.0

Declaration
From
@property(readonly, copy) NSArray *pathComponents
To
@property(readonly, copy, nullable) NSArray<NSString *> *pathComponents

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

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

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

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

Declaration
From
@property(copy) NSArray *queryItems
To
@property(copy, nullable) NSArray<NSURLQueryItem *> *queryItems

NSURLConnection.h

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

NSURLCredentialStorage.h

Declaration
From
@property(readonly, copy) NSDictionary *allCredentials
To
@property(readonly, copy, nonnull) NSDictionary<NSURLProtectionSpace *,NSDictionary<NSString *,NSURLCredential *> *> *allCredentials

Declaration
From
- (NSDictionary *)credentialsForProtectionSpace:(NSURLProtectionSpace *)space
To
- (NSDictionary<NSString *,NSURLCredential *> * _Nullable)credentialsForProtectionSpace:(NSURLProtectionSpace * _Nonnull)space

Declaration
From
- (void)getCredentialsForProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task completionHandler:(void (^)(NSDictionary *credentials))completionHandler
To
- (void)getCredentialsForProtectionSpace:(NSURLProtectionSpace * _Nonnull)protectionSpace task:(NSURLSessionTask * _Nonnull)task completionHandler:(void (^ _Nonnull)(NSDictionary<NSString *,NSURLCredential *> * _Nullable credentials))completionHandler

Declaration
From
- (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space options:(NSDictionary *)options
To
- (void)removeCredential:(NSURLCredential * _Nonnull)credential forProtectionSpace:(NSURLProtectionSpace * _Nonnull)space options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace options:(NSDictionary *)options task:(NSURLSessionTask *)task
To
- (void)removeCredential:(NSURLCredential * _Nonnull)credential forProtectionSpace:(NSURLProtectionSpace * _Nonnull)protectionSpace options:(NSDictionary<NSString *,id> * _Nullable)options task:(NSURLSessionTask * _Nonnull)task

NSURLError.h

NSURLProtectionSpace.h

Declaration
From
@property(readonly, copy) NSArray *distinguishedNames
To
@property(readonly, copy, nullable) NSArray<NSData *> *distinguishedNames

NSURLProtocol.h

Designated Initializer
From--
Toyes

NSURLRequest.h

Declaration
From
@property(copy) NSDictionary *allHTTPHeaderFields
To
@property(copy, nullable) NSDictionary<NSString *,NSString *> *allHTTPHeaderFields

Declaration
From
@property(readonly, copy) NSDictionary *allHTTPHeaderFields
To
@property(readonly, copy, nullable) NSDictionary<NSString *,NSString *> *allHTTPHeaderFields

Designated Initializer
From--
Toyes

NSURLResponse.h

Declaration
From
- (instancetype)initWithURL:(NSURL *)url statusCode:(NSInteger)statusCode HTTPVersion:(NSString *)HTTPVersion headerFields:(NSDictionary *)headerFields
To
- (instancetype _Nullable)initWithURL:(NSURL * _Nonnull)url statusCode:(NSInteger)statusCode HTTPVersion:(NSString * _Nullable)HTTPVersion headerFields:(NSDictionary<NSString *,NSString *> * _Nullable)headerFields

Designated Initializer
From--
Toyes

NSURLSession.h

Removed -[NSURLSession dataTaskWithHTTPGetRequest:]
Removed -[NSURLSession dataTaskWithHTTPGetRequest:completionHandler:]
Removed NSURLSession(NSURLSessionDeprecated)
Declaration
From
- (void)getTasksWithCompletionHandler:(void (^)(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks))completionHandler
To
- (void)getTasksWithCompletionHandler:(void (^ _Nonnull)(NSArray<NSURLSessionDataTask *> * _Nonnull dataTasks, NSArray<NSURLSessionUploadTask *> * _Nonnull uploadTasks, NSArray<NSURLSessionDownloadTask *> * _Nonnull downloadTasks))completionHandler

Declaration
From
@property(copy) NSArray *protocolClasses
To
@property(copy, nullable) NSArray<Class> *protocolClasses

NSUserActivity.h

NSUserDefaults.h

Declaration
From
- (NSDictionary *)dictionaryForKey:(NSString *)defaultName
To
- (NSDictionary<NSString *,id> * _Nullable)dictionaryForKey:(NSString * _Nonnull)defaultName

Declaration
From
- (NSDictionary *)dictionaryRepresentation
To
- (NSDictionary<NSString *,id> * _Nonnull)dictionaryRepresentation

Declaration
From
- (NSDictionary *)persistentDomainForName:(NSString *)domainName
To
- (NSDictionary<NSString *,id> * _Nullable)persistentDomainForName:(NSString * _Nonnull)domainName

Declaration
From
- (void)registerDefaults:(NSDictionary *)registrationDictionary
To
- (void)registerDefaults:(NSDictionary<NSString *,id> * _Nonnull)registrationDictionary

Declaration
From
- (void)setPersistentDomain:(NSDictionary *)domain forName:(NSString *)domainName
To
- (void)setPersistentDomain:(NSDictionary<NSString *,id> * _Nonnull)domain forName:(NSString * _Nonnull)domainName

Declaration
From
- (void)setVolatileDomain:(NSDictionary *)domain forName:(NSString *)domainName
To
- (void)setVolatileDomain:(NSDictionary<NSString *,id> * _Nonnull)domain forName:(NSString * _Nonnull)domainName

Declaration
From
- (NSArray *)stringArrayForKey:(NSString *)defaultName
To
- (NSArray<NSString *> * _Nullable)stringArrayForKey:(NSString * _Nonnull)defaultName

Declaration
From
- (NSDictionary *)volatileDomainForName:(NSString *)domainName
To
- (NSDictionary<NSString *,id> * _Nonnull)volatileDomainForName:(NSString * _Nonnull)domainName

Declaration
From
@property(readonly, copy) NSArray *volatileDomainNames
To
@property(readonly, copy, nonnull) NSArray<NSString *> *volatileDomainNames

NSValue.h

Declaration
From
@property(nonatomic, readonly) id nonretainedObjectValue
To
@property(readonly, nullable) id nonretainedObjectValue

Declaration
From
- (void *)pointerValue
To
@property(readonly, nullable) void *pointerValue

NSValueTransformer.h

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

NSXMLParser.h

Declaration
From
@property(copy) NSSet *allowedExternalEntityURLs
To
@property(copy, nullable) NSSet<NSURL *> *allowedExternalEntityURLs

Designated Initializer
From--
Toyes

Declaration
From
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict
To
- (void)parser:(NSXMLParser * _Nonnull)parser didStartElement:(NSString * _Nonnull)elementName namespaceURI:(NSString * _Nullable)namespaceURI qualifiedName:(NSString * _Nullable)qName attributes:(NSDictionary<NSString *,NSString *> * _Nonnull)attributeDict