Documentation Archive Developer
Search

Foundation Changes for Objective-C

Foundation

NSExpression.h

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

NSFileCoordinator.h

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

NSFilePresenter.h

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

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

NSPointerFunctions.h

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

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