Guides and Sample Code Developer
Search

CoreData Changes

CoreData

NSAtomicStore.h
Declaration
From
- (id)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)coordinator configurationName:(NSString *)configurationName URL:(NSURL *)url options:(NSDictionary *)options
To
- (instancetype)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)coordinator configurationName:(NSString *)configurationName URL:(NSURL *)url options:(NSDictionary *)options

NSAtomicStoreCacheNode.h
Declaration
From
- (id)initWithObjectID:(NSManagedObjectID *)moid
To
- (instancetype)initWithObjectID:(NSManagedObjectID *)moid

NSEntityDescription.h
NSEntityMapping.h
NSFetchRequest.h
Declaration
From
- (id)init
To
- (instancetype)init

Declaration
From
- (id)initWithEntityName:(NSString *)entityName
To
- (instancetype)initWithEntityName:(NSString *)entityName

Introduction
FromiOS 5.0
ToiOS 3.0

NSFetchedResultsController.h
NSIncrementalStoreNode.h
Declaration
From
- (id)initWithObjectID:(NSManagedObjectID *)objectID withValues:(NSDictionary *)values version:(uint64_t)version
To
- (instancetype)initWithObjectID:(NSManagedObjectID *)objectID withValues:(NSDictionary *)values version:(uint64_t)version

NSManagedObject.h
Declaration
From
- (id)initWithEntity:(NSEntityDescription *)entity insertIntoManagedObjectContext:(NSManagedObjectContext *)context
To
- (instancetype)initWithEntity:(NSEntityDescription *)entity insertIntoManagedObjectContext:(NSManagedObjectContext *)context

NSManagedObjectContext.h
Declaration
From
- (id)initWithConcurrencyType:(NSManagedObjectContextConcurrencyType)ct
To
- (instancetype)initWithConcurrencyType:(NSManagedObjectContextConcurrencyType)ct

Deprecation
From--
ToiOS 8.0

Deprecation
From--
ToiOS 8.0

Deprecation
From--
ToiOS 8.0

NSMappingModel.h
Declaration
From
- (id)initWithContentsOfURL:(NSURL *)url
To
- (instancetype)initWithContentsOfURL:(NSURL *)url

NSMergePolicy.h
Declaration
From
- (id)initWithSource:(NSManagedObject *)srcObject newVersion:(NSUInteger)newvers oldVersion:(NSUInteger)oldvers cachedSnapshot:(NSDictionary *)cachesnap persistedSnapshot:(NSDictionary *)persnap
To
- (instancetype)initWithSource:(NSManagedObject *)srcObject newVersion:(NSUInteger)newvers oldVersion:(NSUInteger)oldvers cachedSnapshot:(NSDictionary *)cachesnap persistedSnapshot:(NSDictionary *)persnap

NSPersistentStore.h
Declaration
From
- (id)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)root configurationName:(NSString *)name URL:(NSURL *)url options:(NSDictionary *)options
To
- (instancetype)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)root configurationName:(NSString *)name URL:(NSURL *)url options:(NSDictionary *)options

NSPersistentStoreCoordinator.h
Declaration
From
- (id)initWithManagedObjectModel:(NSManagedObjectModel *)model
To
- (instancetype)initWithManagedObjectModel:(NSManagedObjectModel *)model

Deprecation
From--
ToiOS 8.0

Deprecation
From--
ToiOS 8.0

Deprecation
From--
ToiOS 8.0

NSPropertyDescription.h
NSSaveChangesRequest.h
Declaration
From
- (id)initWithInsertedObjects:(NSSet *)insertedObjects updatedObjects:(NSSet *)updatedObjects deletedObjects:(NSSet *)deletedObjects lockedObjects:(NSSet *)lockedObjects
To
- (instancetype)initWithInsertedObjects:(NSSet *)insertedObjects updatedObjects:(NSSet *)updatedObjects deletedObjects:(NSSet *)deletedObjects lockedObjects:(NSSet *)lockedObjects

Feedback