Documentation Archive Developer
Search

CoreData Changes for Objective-C

CoreData

CoreDataDefines.h

NSBatchUpdateRequest.h

Designated Initializer
From--
Toyes

Designated Initializer
From--
Toyes

NSFetchedResultsController.h

Declaration
From
@property(nonatomic, readonly) NSArray *fetchedObjects
To
@property(nonatomic, readonly) NSArray<ResultType> *fetchedObjects

Declaration
From
@property(nonatomic, readonly) NSFetchRequest *fetchRequest
To
@property(nonatomic, readonly) NSFetchRequest<ResultType> *fetchRequest

Declaration
From
- (NSIndexPath *)indexPathForObject:(id)object
To
- (NSIndexPath *)indexPathForObject:(ResultType)object

Declaration
From
- (instancetype)initWithFetchRequest:(NSFetchRequest *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(NSString *)sectionNameKeyPath cacheName:(NSString *)name
To
- (instancetype)initWithFetchRequest:(NSFetchRequest<ResultType> *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(NSString *)sectionNameKeyPath cacheName:(NSString *)name

Declaration
From
- (id)objectAtIndexPath:(NSIndexPath *)indexPath
To
- (ResultType)objectAtIndexPath:(NSIndexPath *)indexPath

NSFetchRequest.h

Added NSDictionary(NSFetchedResultSupport)
Added NSManagedObject(NSFetchedResultSupport)
Added NSManagedObjectID(NSFetchedResultSupport)
Added NSNumber(NSFetchedResultSupport)
Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

DeclarationHeader
From
@property(strong, readonly) NSFetchRequest *fetchRequest
CoreData/NSPersistentStoreRequest.h
To
@property(strong, readonly) NSFetchRequest<ResultType> *fetchRequest
CoreData/NSFetchRequest.h

DeclarationHeader
From
- (instancetype)initWithFetchRequest:(NSFetchRequest *)request completionBlock:(NSPersistentStoreAsynchronousFetchResultCompletionBlock)blk
CoreData/NSPersistentStoreRequest.h
To
- (instancetype)initWithFetchRequest:(NSFetchRequest<ResultType> *)request completionBlock:(void (^)(NSAsynchronousFetchResult<ResultType> *))blk
CoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

NSManagedObject.h

NSManagedObjectContext.h

NSMergePolicy.h

NSPersistentContainer.h (Added)

NSPersistentStoreCoordinator.h

NSPersistentStoreDescription.h (Added)

NSPersistentStoreRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

DeclarationHeader
From
@property(strong, readonly) NSFetchRequest *fetchRequest
CoreData/NSPersistentStoreRequest.h
To
@property(strong, readonly) NSFetchRequest<ResultType> *fetchRequest
CoreData/NSFetchRequest.h

DeclarationHeader
From
- (instancetype)initWithFetchRequest:(NSFetchRequest *)request completionBlock:(NSPersistentStoreAsynchronousFetchResultCompletionBlock)blk
CoreData/NSPersistentStoreRequest.h
To
- (instancetype)initWithFetchRequest:(NSFetchRequest<ResultType> *)request completionBlock:(void (^)(NSAsynchronousFetchResult<ResultType> *))blk
CoreData/NSFetchRequest.h

Header
FromCoreData/NSPersistentStoreRequest.h
ToCoreData/NSFetchRequest.h

NSPersistentStoreResult.h

Declaration
From
@property(strong, readonly) NSAsynchronousFetchRequest *fetchRequest
To
@property(strong, readonly) NSAsynchronousFetchRequest<ResultType> *fetchRequest

Declaration
From
@property(strong, readonly) NSArray *finalResult
To
@property(strong, readonly) NSArray<ResultType> *finalResult

NSQueryGenerationToken.h (Added)