Documentation Archive Developer
Search

CoreData Changes for Objective-C

CoreData

CoreDataDefines.h

CoreDataErrors.h

NSAtomicStore.h

Declaration
From
- (void)addCacheNodes:(NSSet *)cacheNodes
To
- (void)addCacheNodes:(NSSet<__kindof NSAtomicStoreCacheNode *> * _Nonnull)cacheNodes

Declaration
From
- (NSAtomicStoreCacheNode *)cacheNodeForObjectID:(NSManagedObjectID *)objectID
To
- (NSAtomicStoreCacheNode * _Nullable)cacheNodeForObjectID:(NSManagedObjectID * _Nonnull)objectID

Declaration
From
- (NSSet *)cacheNodes
To
- (NSSet<__kindof NSAtomicStoreCacheNode *> * _Nonnull)cacheNodes

Declaration
From
- (instancetype)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)coordinator configurationName:(NSString *)configurationName URL:(NSURL *)url options:(NSDictionary *)options
To
- (instancetype _Nonnull)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator * _Nullable)coordinator configurationName:(NSString * _Nullable)configurationName URL:(NSURL * _Nonnull)url options:(NSDictionary * _Nullable)options

Declaration
From
- (BOOL)load:(NSError **)error
To
- (BOOL)load:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSAtomicStoreCacheNode *)newCacheNodeForManagedObject:(NSManagedObject *)managedObject
To
- (NSAtomicStoreCacheNode * _Nonnull)newCacheNodeForManagedObject:(NSManagedObject * _Nonnull)managedObject

Declaration
From
- (id)newReferenceObjectForManagedObject:(NSManagedObject *)managedObject
To
- (id _Nonnull)newReferenceObjectForManagedObject:(NSManagedObject * _Nonnull)managedObject

Declaration
From
- (NSManagedObjectID *)objectIDForEntity:(NSEntityDescription *)entity referenceObject:(id)data
To
- (NSManagedObjectID * _Nonnull)objectIDForEntity:(NSEntityDescription * _Nonnull)entity referenceObject:(id _Nonnull)data

Declaration
From
- (id)referenceObjectForObjectID:(NSManagedObjectID *)objectID
To
- (id _Nonnull)referenceObjectForObjectID:(NSManagedObjectID * _Nonnull)objectID

Declaration
From
- (BOOL)save:(NSError **)error
To
- (BOOL)save:(NSError * _Nullable * _Nullable)error

Declaration
From
- (void)updateCacheNode:(NSAtomicStoreCacheNode *)node fromManagedObject:(NSManagedObject *)managedObject
To
- (void)updateCacheNode:(NSAtomicStoreCacheNode * _Nonnull)node fromManagedObject:(NSManagedObject * _Nonnull)managedObject

Declaration
From
- (void)willRemoveCacheNodes:(NSSet *)cacheNodes
To
- (void)willRemoveCacheNodes:(NSSet<__kindof NSAtomicStoreCacheNode *> * _Nonnull)cacheNodes

NSAtomicStoreCacheNode.h

Declaration
From
- (instancetype)initWithObjectID:(NSManagedObjectID *)moid
To
- (instancetype _Nonnull)initWithObjectID:(NSManagedObjectID * _Nonnull)moid

Declaration
From
@property(nonatomic, readonly, strong) NSManagedObjectID *objectID
To
@property(nonatomic, readonly, strong, nonnull) NSManagedObjectID *objectID

Declaration
From
@property(nonatomic, strong) NSMutableDictionary *propertyCache
To
@property(nonatomic, strong, nullable) NSMutableDictionary<NSString *,id> *propertyCache

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

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

NSAttributeDescription.h

Declaration
From
@property(copy) NSString *attributeValueClassName
To
@property(copy, nullable) NSString *attributeValueClassName

Declaration
From
@property(retain) id defaultValue
To
@property(retain, nullable) id defaultValue

Declaration
From
@property(copy) NSString *valueTransformerName
To
@property(copy, nullable) NSString *valueTransformerName

Declaration
From
@property(readonly, copy) NSData *versionHash
To
@property(readonly, copy, nonnull) NSData *versionHash

NSBatchDeleteRequest.h (Added)

NSBatchUpdateRequest.h

Declaration
From
+ (instancetype)batchUpdateRequestWithEntityName:(NSString *)entityName
To
+ (instancetype _Nonnull)batchUpdateRequestWithEntityName:(NSString * _Nonnull)entityName

Declaration
From
@property(strong, readonly) NSEntityDescription *entity
To
@property(strong, readonly, nonnull) NSEntityDescription *entity

Declaration
From
@property(copy, readonly) NSString *entityName
To
@property(copy, readonly, nonnull) NSString *entityName

Declaration
From
- (instancetype)initWithEntity:(NSEntityDescription *)entity
To
- (instancetype _Nonnull)initWithEntity:(NSEntityDescription * _Nonnull)entity

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

Declaration
From
@property(strong) NSPredicate *predicate
To
@property(strong, nullable) NSPredicate *predicate

Declaration
From
@property(copy) NSDictionary *propertiesToUpdate
To
@property(copy, nullable) NSDictionary *propertiesToUpdate

NSEntityDescription.h

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

Declaration
From
@property(strong) NSArray *compoundIndexes
To
@property(strong, nonnull) NSArray<NSArray<id> *> *compoundIndexes

Declaration
From
+ (NSEntityDescription *)entityForName:(NSString *)entityName inManagedObjectContext:(NSManagedObjectContext *)context
To
+ (NSEntityDescription * _Nullable)entityForName:(NSString * _Nonnull)entityName inManagedObjectContext:(NSManagedObjectContext * _Nonnull)context

Declaration
From
+ (id)insertNewObjectForEntityForName:(NSString *)entityName inManagedObjectContext:(NSManagedObjectContext *)context
To
+ (__kindof NSManagedObject * _Nonnull)insertNewObjectForEntityForName:(NSString * _Nonnull)entityName inManagedObjectContext:(NSManagedObjectContext * _Nonnull)context

Declaration
From
- (BOOL)isKindOfEntity:(NSEntityDescription *)entity
To
- (BOOL)isKindOfEntity:(NSEntityDescription * _Nonnull)entity

Declaration
From
@property(copy) NSString *managedObjectClassName
To
@property(copy) NSString * _Null_unspecified managedObjectClassName

Declaration
From
@property(readonly, assign) NSManagedObjectModel *managedObjectModel
To
@property(readonly, assign, nonnull) NSManagedObjectModel *managedObjectModel

Declaration
From
@property(copy) NSString *name
To
@property(copy, nullable) NSString *name

Declaration
From
@property(strong) NSArray *properties
To
@property(strong, nonnull) NSArray<__kindof NSPropertyDescription *> *properties

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

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

Declaration
From
- (NSArray *)relationshipsWithDestinationEntity:(NSEntityDescription *)entity
To
- (NSArray<NSRelationshipDescription *> * _Nonnull)relationshipsWithDestinationEntity:(NSEntityDescription * _Nonnull)entity

Declaration
From
@property(copy) NSString *renamingIdentifier
To
@property(copy, nullable) NSString *renamingIdentifier

Declaration
From
@property(strong) NSArray *subentities
To
@property(strong, nonnull) NSArray<NSEntityDescription *> *subentities

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

Declaration
From
@property(readonly, assign) NSEntityDescription *superentity
To
@property(readonly, assign, nullable) NSEntityDescription *superentity

Declaration
From
@property(nonatomic, strong) NSDictionary *userInfo
To
@property(nonatomic, strong, nullable) NSDictionary *userInfo

Declaration
From
@property(readonly, copy) NSData *versionHash
To
@property(readonly, copy, nonnull) NSData *versionHash

Declaration
From
@property(copy) NSString *versionHashModifier
To
@property(copy, nullable) NSString *versionHashModifier

NSEntityMapping.h

Declaration
From
@property(strong) NSArray *attributeMappings
To
@property(strong, nullable) NSArray<NSPropertyMapping *> *attributeMappings

Declaration
From
@property(copy) NSString *destinationEntityName
To
@property(copy, nullable) NSString *destinationEntityName

Declaration
From
@property(copy) NSData *destinationEntityVersionHash
To
@property(copy, nullable) NSData *destinationEntityVersionHash

Declaration
From
@property(copy) NSString *entityMigrationPolicyClassName
To
@property(copy, nullable) NSString *entityMigrationPolicyClassName

Declaration
From
@property(copy) NSString *name
To
@property(copy) NSString * _Null_unspecified name

Declaration
From
@property(strong) NSArray *relationshipMappings
To
@property(strong, nullable) NSArray<NSPropertyMapping *> *relationshipMappings

Declaration
From
@property(copy) NSString *sourceEntityName
To
@property(copy, nullable) NSString *sourceEntityName

Declaration
From
@property(copy) NSData *sourceEntityVersionHash
To
@property(copy, nullable) NSData *sourceEntityVersionHash

Declaration
From
@property(strong) NSExpression *sourceExpression
To
@property(strong, nullable) NSExpression *sourceExpression

Declaration
From
@property(nonatomic, strong) NSDictionary *userInfo
To
@property(nonatomic, strong, nullable) NSDictionary *userInfo

NSEntityMigrationPolicy.h

Declaration
From
- (BOOL)beginEntityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)beginEntityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)createDestinationInstancesForSourceInstance:(NSManagedObject *)sInstance entityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)createDestinationInstancesForSourceInstance:(NSManagedObject * _Nonnull)sInstance entityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)createRelationshipsForDestinationInstance:(NSManagedObject *)dInstance entityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)createRelationshipsForDestinationInstance:(NSManagedObject * _Nonnull)dInstance entityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)endEntityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)endEntityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)endInstanceCreationForEntityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)endInstanceCreationForEntityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)endRelationshipCreationForEntityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)endRelationshipCreationForEntityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)performCustomValidationForEntityMapping:(NSEntityMapping *)mapping manager:(NSMigrationManager *)manager error:(NSError **)error
To
- (BOOL)performCustomValidationForEntityMapping:(NSEntityMapping * _Nonnull)mapping manager:(NSMigrationManager * _Nonnull)manager error:(NSError * _Nullable * _Nullable)error

NSExpressionDescription.h

Declaration
From
@property(strong) NSExpression *expression
To
@property(strong, nullable) NSExpression *expression

NSFetchedPropertyDescription.h

Declaration
From
@property(strong) NSFetchRequest *fetchRequest
To
@property(strong, nullable) NSFetchRequest *fetchRequest

NSFetchRequest.h

Declaration
From
@property(nonatomic, strong) NSArray *affectedStores
To
@property(nonatomic, strong, nullable) NSArray<NSPersistentStore *> *affectedStores

Declaration
From
@property(nonatomic, strong) NSEntityDescription *entity
To
@property(nonatomic, strong, nullable) NSEntityDescription *entity

Declaration
From
@property(nonatomic, readonly, strong) NSString *entityName
To
@property(nonatomic, readonly, strong, nullable) NSString *entityName

Declaration
From
+ (NSFetchRequest *)fetchRequestWithEntityName:(NSString *)entityName
To
+ (instancetype _Nonnull)fetchRequestWithEntityName:(NSString * _Nonnull)entityName

Declaration
From
@property(nonatomic, strong) NSPredicate *havingPredicate
To
@property(nonatomic, strong, nullable) NSPredicate *havingPredicate

Declaration
From
- (instancetype)init
To
- (instancetype _Nonnull)init

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

Declaration
From
@property(nonatomic, strong) NSPredicate *predicate
To
@property(nonatomic, strong, nullable) NSPredicate *predicate

Declaration
From
@property(nonatomic, copy) NSArray *propertiesToFetch
To
@property(nonatomic, copy, nullable) NSArray *propertiesToFetch

Declaration
From
@property(nonatomic, copy) NSArray *propertiesToGroupBy
To
@property(nonatomic, copy, nullable) NSArray *propertiesToGroupBy

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

Declaration
From
@property(nonatomic, strong) NSArray *sortDescriptors
To
@property(nonatomic, strong, nullable) NSArray<NSSortDescriptor *> *sortDescriptors

NSFetchRequestExpression.h

Removed NSFetchRequestExpressionType
Declaration
From
@property(readonly, strong) NSExpression *contextExpression
To
@property(readonly, strong, nonnull) NSExpression *contextExpression

Declaration
From
+ (NSExpression *)expressionForFetch:(NSExpression *)fetch context:(NSExpression *)context countOnly:(BOOL)countFlag
To
+ (NSExpression * _Nonnull)expressionForFetch:(NSExpression * _Nonnull)fetch context:(NSExpression * _Nonnull)context countOnly:(BOOL)countFlag

Declaration
From
@property(readonly, strong) NSExpression *requestExpression
To
@property(readonly, strong, nonnull) NSExpression *requestExpression

NSIncrementalStore.h

Declaration
From
- (id)executeRequest:(NSPersistentStoreRequest *)request withContext:(NSManagedObjectContext *)context error:(NSError **)error
To
- (id _Nullable)executeRequest:(NSPersistentStoreRequest * _Nonnull)request withContext:(NSManagedObjectContext * _Nullable)context error:(NSError * _Nullable * _Nullable)error

Declaration
From
+ (id)identifierForNewStoreAtURL:(NSURL *)storeURL
To
+ (id _Nonnull)identifierForNewStoreAtURL:(NSURL * _Nonnull)storeURL

Declaration
From
- (BOOL)loadMetadata:(NSError **)error
To
- (BOOL)loadMetadata:(NSError * _Nullable * _Nullable)error

Declaration
From
- (void)managedObjectContextDidRegisterObjectsWithIDs:(NSArray *)objectIDs
To
- (void)managedObjectContextDidRegisterObjectsWithIDs:(NSArray<NSManagedObjectID *> * _Nonnull)objectIDs

Declaration
From
- (void)managedObjectContextDidUnregisterObjectsWithIDs:(NSArray *)objectIDs
To
- (void)managedObjectContextDidUnregisterObjectsWithIDs:(NSArray<NSManagedObjectID *> * _Nonnull)objectIDs

Declaration
From
- (NSManagedObjectID *)newObjectIDForEntity:(NSEntityDescription *)entity referenceObject:(id)data
To
- (NSManagedObjectID * _Nonnull)newObjectIDForEntity:(NSEntityDescription * _Nonnull)entity referenceObject:(id _Nonnull)data

Declaration
From
- (id)newValueForRelationship:(NSRelationshipDescription *)relationship forObjectWithID:(NSManagedObjectID *)objectID withContext:(NSManagedObjectContext *)context error:(NSError **)error
To
- (id _Nullable)newValueForRelationship:(NSRelationshipDescription * _Nonnull)relationship forObjectWithID:(NSManagedObjectID * _Nonnull)objectID withContext:(NSManagedObjectContext * _Nullable)context error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSIncrementalStoreNode *)newValuesForObjectWithID:(NSManagedObjectID *)objectID withContext:(NSManagedObjectContext *)context error:(NSError **)error
To
- (NSIncrementalStoreNode * _Nullable)newValuesForObjectWithID:(NSManagedObjectID * _Nonnull)objectID withContext:(NSManagedObjectContext * _Nonnull)context error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSArray *)obtainPermanentIDsForObjects:(NSArray *)array error:(NSError **)error
To
- (NSArray<NSManagedObjectID *> * _Nullable)obtainPermanentIDsForObjects:(NSArray<NSManagedObject *> * _Nonnull)array error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (id)referenceObjectForObjectID:(NSManagedObjectID *)objectID
To
- (id _Nonnull)referenceObjectForObjectID:(NSManagedObjectID * _Nonnull)objectID

NSIncrementalStoreNode.h

Declaration
From
- (instancetype)initWithObjectID:(NSManagedObjectID *)objectID withValues:(NSDictionary *)values version:(uint64_t)version
To
- (instancetype _Nonnull)initWithObjectID:(NSManagedObjectID * _Nonnull)objectID withValues:(NSDictionary<NSString *,id> * _Nonnull)values version:(uint64_t)version

Declaration
From
@property(nonatomic, readonly, strong) NSManagedObjectID *objectID
To
@property(nonatomic, readonly, strong, nonnull) NSManagedObjectID *objectID

Declaration
From
- (void)updateWithValues:(NSDictionary *)values version:(uint64_t)version
To
- (void)updateWithValues:(NSDictionary<NSString *,id> * _Nonnull)values version:(uint64_t)version

Declaration
From
- (id)valueForPropertyDescription:(NSPropertyDescription *)prop
To
- (id _Nullable)valueForPropertyDescription:(NSPropertyDescription * _Nonnull)prop

NSManagedObject.h

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

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

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

Declaration
From
- (void)didAccessValueForKey:(NSString *)key
To
- (void)didAccessValueForKey:(NSString * _Nullable)key

Declaration
From
- (void)didChangeValueForKey:(NSString *)key
To
- (void)didChangeValueForKey:(NSString * _Nonnull)key

Declaration
From
- (void)didChangeValueForKey:(NSString *)inKey withSetMutation:(NSKeyValueSetMutationKind)inMutationKind usingObjects:(NSSet *)inObjects
To
- (void)didChangeValueForKey:(NSString * _Nonnull)inKey withSetMutation:(NSKeyValueSetMutationKind)inMutationKind usingObjects:(NSSet * _Nonnull)inObjects

Declaration
From
@property(nonatomic, readonly, strong) NSEntityDescription *entity
To
@property(nonatomic, readonly, strong, nonnull) NSEntityDescription *entity

Declaration
From
- (BOOL)hasFaultForRelationshipNamed:(NSString *)key
To
- (BOOL)hasFaultForRelationshipNamed:(NSString * _Nonnull)key

Declaration
From
- (instancetype)initWithEntity:(NSEntityDescription *)entity insertIntoManagedObjectContext:(NSManagedObjectContext *)context
To
- (__kindof NSManagedObject * _Nonnull)initWithEntity:(NSEntityDescription * _Nonnull)entity insertIntoManagedObjectContext:(NSManagedObjectContext * _Nullable)context

Declaration
From
@property(nonatomic, readonly, assign) NSManagedObjectContext *managedObjectContext
To
@property(nonatomic, readonly, assign, nullable) NSManagedObjectContext *managedObjectContext

Declaration
From
@property(nonatomic, readonly, strong) NSManagedObjectID *objectID
To
@property(nonatomic, readonly, strong, nonnull) NSManagedObjectID *objectID

Declaration
From
- (id)observationInfo
To
- (void * _Nullable)observationInfo

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

Declaration
From
- (void)setObservationInfo:(id)inObservationInfo
To
- (void)setObservationInfo:(void * _Nullable)inObservationInfo

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

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

Declaration
From
- (BOOL)validateForDelete:(NSError **)error
To
- (BOOL)validateForDelete:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)validateForInsert:(NSError **)error
To
- (BOOL)validateForInsert:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)validateForUpdate:(NSError **)error
To
- (BOOL)validateForUpdate:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)validateValue:(id *)value forKey:(NSString *)key error:(NSError **)error
To
- (BOOL)validateValue:(id  _Nullable * _Nonnull)value forKey:(NSString * _Nonnull)key error:(NSError * _Nullable * _Nullable)error

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

Declaration
From
- (void)willAccessValueForKey:(NSString *)key
To
- (void)willAccessValueForKey:(NSString * _Nullable)key

Declaration
From
- (void)willChangeValueForKey:(NSString *)key
To
- (void)willChangeValueForKey:(NSString * _Nonnull)key

Declaration
From
- (void)willChangeValueForKey:(NSString *)inKey withSetMutation:(NSKeyValueSetMutationKind)inMutationKind usingObjects:(NSSet *)inObjects
To
- (void)willChangeValueForKey:(NSString * _Nonnull)inKey withSetMutation:(NSKeyValueSetMutationKind)inMutationKind usingObjects:(NSSet * _Nonnull)inObjects

NSManagedObjectContext.h

Declaration
From
- (void)assignObject:(id)object toPersistentStore:(NSPersistentStore *)store
To
- (void)assignObject:(id _Nonnull)object toPersistentStore:(NSPersistentStore * _Nonnull)store

Declaration
From
- (NSUInteger)countForFetchRequest:(NSFetchRequest *)request error:(NSError **)error
To
- (NSUInteger)countForFetchRequest:(NSFetchRequest * _Nonnull)request error:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(nonatomic, readonly, strong) NSSet *deletedObjects
To
@property(nonatomic, readonly, strong, nonnull) NSSet<__kindof NSManagedObject *> *deletedObjects

Declaration
From
- (void)deleteObject:(NSManagedObject *)object
To
- (void)deleteObject:(NSManagedObject * _Nonnull)object

Declaration
From
- (void)detectConflictsForObject:(NSManagedObject *)object
To
- (void)detectConflictsForObject:(NSManagedObject * _Nonnull)object

Declaration
From
- (NSArray *)executeFetchRequest:(NSFetchRequest *)request error:(NSError **)error
To
- (NSArray * _Nullable)executeFetchRequest:(NSFetchRequest * _Nonnull)request error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSPersistentStoreResult *)executeRequest:(NSPersistentStoreRequest *)request error:(NSError **)error
To
- (__kindof NSPersistentStoreResult * _Nullable)executeRequest:(NSPersistentStoreRequest * _Nonnull)request error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSManagedObject *)existingObjectWithID:(NSManagedObjectID *)objectID error:(NSError **)error
To
- (__kindof NSManagedObject * _Nullable)existingObjectWithID:(NSManagedObjectID * _Nonnull)objectID error:(NSError * _Nullable * _Nullable)error

DeclarationIntroductionDeprecation
From
- (instancetype)init
OS X 10.10--
To
- (instancetype _Nonnull)init
OS X 10.4OS X 10.11

Declaration
From
- (instancetype)initWithConcurrencyType:(NSManagedObjectContextConcurrencyType)ct
To
- (instancetype _Nonnull)initWithConcurrencyType:(NSManagedObjectContextConcurrencyType)ct

Declaration
From
@property(nonatomic, readonly, strong) NSSet *insertedObjects
To
@property(nonatomic, readonly, strong, nonnull) NSSet<__kindof NSManagedObject *> *insertedObjects

Declaration
From
- (void)insertObject:(NSManagedObject *)object
To
- (void)insertObject:(NSManagedObject * _Nonnull)object

Declaration
From
- (void)mergeChangesFromContextDidSaveNotification:(NSNotification *)notification
To
- (void)mergeChangesFromContextDidSaveNotification:(NSNotification * _Nonnull)notification

Declaration
From
@property(strong) id mergePolicy
To
@property(strong, nonnull) id mergePolicy

Declaration
From
@property(copy) NSString *name
To
@property(copy, nullable) NSString *name

Declaration
From
- (NSManagedObject *)objectRegisteredForID:(NSManagedObjectID *)objectID
To
- (__kindof NSManagedObject * _Nullable)objectRegisteredForID:(NSManagedObjectID * _Nonnull)objectID

Declaration
From
- (NSManagedObject *)objectWithID:(NSManagedObjectID *)objectID
To
- (__kindof NSManagedObject * _Nonnull)objectWithID:(NSManagedObjectID * _Nonnull)objectID

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

Declaration
From
- (BOOL)obtainPermanentIDsForObjects:(NSArray *)objects error:(NSError **)error
To
- (BOOL)obtainPermanentIDsForObjects:(NSArray<NSManagedObject *> * _Nonnull)objects error:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(strong) NSManagedObjectContext *parentContext
To
@property(strong, nullable) NSManagedObjectContext *parentContext

Declaration
From
- (void)performBlock:(void (^)(void))block
To
- (void)performBlock:(void (^ _Nonnull)(void))block

Declaration
From
- (void)performBlockAndWait:(void (^)(void))block
To
- (void)performBlockAndWait:(void (^ _Nonnull)(void))block

Declaration
From
@property(strong) NSPersistentStoreCoordinator *persistentStoreCoordinator
To
@property(strong, nullable) NSPersistentStoreCoordinator *persistentStoreCoordinator

Declaration
From
- (void)refreshObject:(NSManagedObject *)object mergeChanges:(BOOL)flag
To
- (void)refreshObject:(NSManagedObject * _Nonnull)object mergeChanges:(BOOL)flag

Declaration
From
@property(nonatomic, readonly, strong) NSSet *registeredObjects
To
@property(nonatomic, readonly, strong, nonnull) NSSet<__kindof NSManagedObject *> *registeredObjects

Declaration
From
- (BOOL)save:(NSError **)error
To
- (BOOL)save:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(nonatomic, strong) NSUndoManager *undoManager
To
@property(nonatomic, strong, nullable) NSUndoManager *undoManager

Declaration
From
@property(nonatomic, readonly, strong) NSSet *updatedObjects
To
@property(nonatomic, readonly, strong, nonnull) NSSet<__kindof NSManagedObject *> *updatedObjects

Declaration
From
@property(nonatomic, readonly, strong) NSMutableDictionary *userInfo
To
@property(nonatomic, readonly, strong, nonnull) NSMutableDictionary *userInfo

IntroductionDeprecation
FromOS X 10.7--
ToOS X 10.4OS X 10.11

NSManagedObjectID.h

Declaration
From
@property(readonly, strong) NSEntityDescription *entity
To
@property(readonly, strong, nonnull) NSEntityDescription *entity

Declaration
From
@property(readonly, weak) NSPersistentStore *persistentStore
To
@property(readonly, weak, nullable) NSPersistentStore *persistentStore

Declaration
From
- (NSURL *)URIRepresentation
To
- (NSURL * _Nonnull)URIRepresentation

NSManagedObjectModel.h

Declaration
From
@property(readonly, strong) NSArray *configurations
To
@property(readonly, strong, nonnull) NSArray<NSString *> *configurations

Declaration
From
@property(strong) NSArray *entities
To
@property(strong, nonnull) NSArray<NSEntityDescription *> *entities

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

Declaration
From
- (NSArray *)entitiesForConfiguration:(NSString *)configuration
To
- (NSArray<NSEntityDescription *> * _Nullable)entitiesForConfiguration:(NSString * _Nullable)configuration

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

Declaration
From
- (NSFetchRequest *)fetchRequestFromTemplateWithName:(NSString *)name substitutionVariables:(NSDictionary *)variables
To
- (NSFetchRequest * _Nullable)fetchRequestFromTemplateWithName:(NSString * _Nonnull)name substitutionVariables:(NSDictionary<NSString *,id> * _Nonnull)variables

Declaration
From
- (NSFetchRequest *)fetchRequestTemplateForName:(NSString *)name
To
- (NSFetchRequest * _Nullable)fetchRequestTemplateForName:(NSString * _Nonnull)name

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

Declaration
From
- (instancetype)init
To
- (instancetype _Nonnull)init

Declaration
From
- (instancetype)initWithContentsOfURL:(NSURL *)url
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (BOOL)isConfiguration:(NSString *)configuration compatibleWithStoreMetadata:(NSDictionary *)metadata
To
- (BOOL)isConfiguration:(NSString * _Nullable)configuration compatibleWithStoreMetadata:(NSDictionary<NSString *,id> * _Nonnull)metadata

Declaration
From
@property(strong) NSDictionary *localizationDictionary
To
@property(strong, nullable) NSDictionary<NSString *,NSString *> *localizationDictionary

Declaration
From
+ (NSManagedObjectModel *)mergedModelFromBundles:(NSArray *)bundles
To
+ (NSManagedObjectModel * _Nullable)mergedModelFromBundles:(NSArray<NSBundle *> * _Nullable)bundles

Declaration
From
+ (NSManagedObjectModel *)mergedModelFromBundles:(NSArray *)bundles forStoreMetadata:(NSDictionary *)metadata
To
+ (NSManagedObjectModel * _Nullable)mergedModelFromBundles:(NSArray<NSBundle *> * _Nullable)bundles forStoreMetadata:(NSDictionary<NSString *,id> * _Nonnull)metadata

Declaration
From
+ (NSManagedObjectModel *)modelByMergingModels:(NSArray *)models
To
+ (NSManagedObjectModel * _Nullable)modelByMergingModels:(NSArray<NSManagedObjectModel *> * _Nullable)models

Declaration
From
+ (NSManagedObjectModel *)modelByMergingModels:(NSArray *)models forStoreMetadata:(NSDictionary *)metadata
To
+ (NSManagedObjectModel * _Nullable)modelByMergingModels:(NSArray<NSManagedObjectModel *> * _Nonnull)models forStoreMetadata:(NSDictionary<NSString *,id> * _Nonnull)metadata

Declaration
From
- (void)setEntities:(NSArray *)entities forConfiguration:(NSString *)configuration
To
- (void)setEntities:(NSArray<NSEntityDescription *> * _Nonnull)entities forConfiguration:(NSString * _Nonnull)configuration

Declaration
From
- (void)setFetchRequestTemplate:(NSFetchRequest *)fetchRequestTemplate forName:(NSString *)name
To
- (void)setFetchRequestTemplate:(NSFetchRequest * _Nullable)fetchRequestTemplate forName:(NSString * _Nonnull)name

Declaration
From
@property(copy) NSSet *versionIdentifiers
To
@property(copy, nonnull) NSSet *versionIdentifiers

NSMappingModel.h

Declaration
From
@property(strong) NSArray *entityMappings
To
@property(strong) NSArray<NSEntityMapping *> * _Null_unspecified entityMappings

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

Declaration
From
+ (NSMappingModel *)inferredMappingModelForSourceModel:(NSManagedObjectModel *)sourceModel destinationModel:(NSManagedObjectModel *)destinationModel error:(NSError **)error
To
+ (NSMappingModel * _Nullable)inferredMappingModelForSourceModel:(NSManagedObjectModel * _Nonnull)sourceModel destinationModel:(NSManagedObjectModel * _Nonnull)destinationModel error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (instancetype)initWithContentsOfURL:(NSURL *)url
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nullable)url

Declaration
From
+ (NSMappingModel *)mappingModelFromBundles:(NSArray *)bundles forSourceModel:(NSManagedObjectModel *)sourceModel destinationModel:(NSManagedObjectModel *)destinationModel
To
+ (NSMappingModel * _Nullable)mappingModelFromBundles:(NSArray<NSBundle *> * _Nullable)bundles forSourceModel:(NSManagedObjectModel * _Nullable)sourceModel destinationModel:(NSManagedObjectModel * _Nullable)destinationModel

NSMergePolicy.h

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

Declaration
From
- (instancetype)initWithSource:(NSManagedObject *)srcObject newVersion:(NSUInteger)newvers oldVersion:(NSUInteger)oldvers cachedSnapshot:(NSDictionary *)cachesnap persistedSnapshot:(NSDictionary *)persnap
To
- (instancetype _Nonnull)initWithSource:(NSManagedObject * _Nonnull)srcObject newVersion:(NSUInteger)newvers oldVersion:(NSUInteger)oldvers cachedSnapshot:(NSDictionary<NSString *,id> * _Nullable)cachesnap persistedSnapshot:(NSDictionary<NSString *,id> * _Nullable)persnap

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

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

Declaration
From
@property(readonly, retain) NSManagedObject *sourceObject
To
@property(readonly, retain, nonnull) NSManagedObject *sourceObject

Declaration
From
- (id)initWithMergeType:(NSMergePolicyType)ty
To
- (id _Nonnull)initWithMergeType:(NSMergePolicyType)ty

Declaration
From
- (BOOL)resolveConflicts:(NSArray *)list error:(NSError **)error
To
- (BOOL)resolveConflicts:(NSArray * _Nonnull)list error:(NSError * _Nullable * _Nullable)error

NSMigrationManager.h

Declaration
From
- (void)associateSourceInstance:(NSManagedObject *)sourceInstance withDestinationInstance:(NSManagedObject *)destinationInstance forEntityMapping:(NSEntityMapping *)entityMapping
To
- (void)associateSourceInstance:(NSManagedObject * _Nonnull)sourceInstance withDestinationInstance:(NSManagedObject * _Nonnull)destinationInstance forEntityMapping:(NSEntityMapping * _Nonnull)entityMapping

Declaration
From
- (void)cancelMigrationWithError:(NSError *)error
To
- (void)cancelMigrationWithError:(NSError * _Nonnull)error

Declaration
From
@property(readonly, strong) NSEntityMapping *currentEntityMapping
To
@property(readonly, strong, nonnull) NSEntityMapping *currentEntityMapping

Declaration
From
@property(readonly, strong) NSManagedObjectContext *destinationContext
To
@property(readonly, strong, nonnull) NSManagedObjectContext *destinationContext

Declaration
From
- (NSEntityDescription *)destinationEntityForEntityMapping:(NSEntityMapping *)mEntity
To
- (NSEntityDescription * _Nullable)destinationEntityForEntityMapping:(NSEntityMapping * _Nonnull)mEntity

Declaration
From
- (NSArray *)destinationInstancesForEntityMappingNamed:(NSString *)mappingName sourceInstances:(NSArray *)sourceInstances
To
- (NSArray<__kindof NSManagedObject *> * _Nonnull)destinationInstancesForEntityMappingNamed:(NSString * _Nonnull)mappingName sourceInstances:(NSArray<__kindof NSManagedObject *> * _Nullable)sourceInstances

Declaration
From
@property(readonly, strong) NSManagedObjectModel *destinationModel
To
@property(readonly, strong, nonnull) NSManagedObjectModel *destinationModel

Declaration
From
- (instancetype)initWithSourceModel:(NSManagedObjectModel *)sourceModel destinationModel:(NSManagedObjectModel *)destinationModel
To
- (instancetype _Nonnull)initWithSourceModel:(NSManagedObjectModel * _Nonnull)sourceModel destinationModel:(NSManagedObjectModel * _Nonnull)destinationModel

Declaration
From
@property(readonly, strong) NSMappingModel *mappingModel
To
@property(readonly, strong, nonnull) NSMappingModel *mappingModel

Declaration
From
- (BOOL)migrateStoreFromURL:(NSURL *)sourceURL type:(NSString *)sStoreType options:(NSDictionary *)sOptions withMappingModel:(NSMappingModel *)mappings toDestinationURL:(NSURL *)dURL destinationType:(NSString *)dStoreType destinationOptions:(NSDictionary *)dOptions error:(NSError **)error
To
- (BOOL)migrateStoreFromURL:(NSURL * _Nonnull)sourceURL type:(NSString * _Nonnull)sStoreType options:(NSDictionary * _Nullable)sOptions withMappingModel:(NSMappingModel * _Nullable)mappings toDestinationURL:(NSURL * _Nonnull)dURL destinationType:(NSString * _Nonnull)dStoreType destinationOptions:(NSDictionary * _Nullable)dOptions error:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(readonly, strong) NSManagedObjectContext *sourceContext
To
@property(readonly, strong, nonnull) NSManagedObjectContext *sourceContext

Declaration
From
- (NSEntityDescription *)sourceEntityForEntityMapping:(NSEntityMapping *)mEntity
To
- (NSEntityDescription * _Nullable)sourceEntityForEntityMapping:(NSEntityMapping * _Nonnull)mEntity

Declaration
From
- (NSArray *)sourceInstancesForEntityMappingNamed:(NSString *)mappingName destinationInstances:(NSArray *)destinationInstances
To
- (NSArray<__kindof NSManagedObject *> * _Nonnull)sourceInstancesForEntityMappingNamed:(NSString * _Nonnull)mappingName destinationInstances:(NSArray<__kindof NSManagedObject *> * _Nullable)destinationInstances

Declaration
From
@property(readonly, strong) NSManagedObjectModel *sourceModel
To
@property(readonly, strong, nonnull) NSManagedObjectModel *sourceModel

Declaration
From
@property(nonatomic, strong) NSDictionary *userInfo
To
@property(nonatomic, strong, nullable) NSDictionary *userInfo

NSPersistentStore.h

Declaration
From
@property(readonly, copy) NSString *configurationName
To
@property(readonly, copy, nonnull) NSString *configurationName

Declaration
From
- (void)didAddToPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)coordinator
To
- (void)didAddToPersistentStoreCoordinator:(NSPersistentStoreCoordinator * _Nonnull)coordinator

Declaration
From
@property(copy) NSString *identifier
To
@property(copy) NSString * _Null_unspecified identifier

Declaration
From
- (instancetype)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)root configurationName:(NSString *)name URL:(NSURL *)url options:(NSDictionary *)options
To
- (instancetype _Nonnull)initWithPersistentStoreCoordinator:(NSPersistentStoreCoordinator * _Nullable)root configurationName:(NSString * _Nullable)name URL:(NSURL * _Nonnull)url options:(NSDictionary * _Nullable)options

Declaration
From
- (BOOL)loadMetadata:(NSError **)error
To
- (BOOL)loadMetadata:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(nonatomic, strong) NSDictionary *metadata
To
@property(nonatomic, strong) NSDictionary<NSString *,id> * _Null_unspecified metadata

Declaration
From
+ (NSDictionary *)metadataForPersistentStoreWithURL:(NSURL *)url error:(NSError **)error
To
+ (NSDictionary<NSString *,id> * _Nullable)metadataForPersistentStoreWithURL:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error

Declaration
From
+ (Class)migrationManagerClass
To
+ (Class _Nonnull)migrationManagerClass

Declaration
From
@property(readonly, strong) NSDictionary *options
To
@property(readonly, strong, nullable) NSDictionary *options

Declaration
From
@property(nonatomic, readonly, weak) NSPersistentStoreCoordinator *persistentStoreCoordinator
To
@property(nonatomic, readonly, weak, nullable) NSPersistentStoreCoordinator *persistentStoreCoordinator

Declaration
From
+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreWithURL:(NSURL *)url error:(NSError **)error
To
+ (BOOL)setMetadata:(NSDictionary<NSString *,id> * _Nullable)metadata forPersistentStoreWithURL:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(readonly, copy) NSString *type
To
@property(readonly, copy, nonnull) NSString *type

Declaration
From
@property(strong) NSURL *URL
To
@property(strong, nullable) NSURL *URL

Declaration
From
- (void)willRemoveFromPersistentStoreCoordinator:(NSPersistentStoreCoordinator *)coordinator
To
- (void)willRemoveFromPersistentStoreCoordinator:(NSPersistentStoreCoordinator * _Nullable)coordinator

NSPersistentStoreCoordinator.h

Declaration
From
- (NSPersistentStore *)addPersistentStoreWithType:(NSString *)storeType configuration:(NSString *)configuration URL:(NSURL *)storeURL options:(NSDictionary *)options error:(NSError **)error
To
- (__kindof NSPersistentStore * _Nullable)addPersistentStoreWithType:(NSString * _Nonnull)storeType configuration:(NSString * _Nullable)configuration URL:(NSURL * _Nullable)storeURL options:(NSDictionary * _Nullable)options error:(NSError * _Nullable * _Nullable)error

Declaration
From
+ (NSDictionary *)elementsDerivedFromExternalRecordURL:(NSURL *)fileURL
To
+ (NSDictionary * _Nonnull)elementsDerivedFromExternalRecordURL:(NSURL * _Nonnull)fileURL

Declaration
From
- (id)executeRequest:(NSPersistentStoreRequest *)request withContext:(NSManagedObjectContext *)context error:(NSError **)error
To
- (id _Nullable)executeRequest:(NSPersistentStoreRequest * _Nonnull)request withContext:(NSManagedObjectContext * _Nonnull)context error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSPersistentStore *)importStoreWithIdentifier:(NSString *)storeIdentifier fromExternalRecordsDirectory:(NSURL *)externalRecordsURL toURL:(NSURL *)destinationURL options:(NSDictionary *)options withType:(NSString *)storeType error:(NSError **)error
To
- (NSPersistentStore * _Nullable)importStoreWithIdentifier:(NSString * _Nullable)storeIdentifier fromExternalRecordsDirectory:(NSURL * _Nonnull)externalRecordsURL toURL:(NSURL * _Nonnull)destinationURL options:(NSDictionary * _Nullable)options withType:(NSString * _Nonnull)storeType error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (instancetype)initWithManagedObjectModel:(NSManagedObjectModel *)model
To
- (instancetype _Nonnull)initWithManagedObjectModel:(NSManagedObjectModel * _Nonnull)model

Declaration
From
- (NSManagedObjectID *)managedObjectIDForURIRepresentation:(NSURL *)url
To
- (NSManagedObjectID * _Nullable)managedObjectIDForURIRepresentation:(NSURL * _Nonnull)url

Declaration
From
@property(readonly, strong) NSManagedObjectModel *managedObjectModel
To
@property(readonly, strong, nonnull) NSManagedObjectModel *managedObjectModel

Declaration
From
- (NSDictionary *)metadataForPersistentStore:(NSPersistentStore *)store
To
- (NSDictionary<NSString *,id> * _Nonnull)metadataForPersistentStore:(NSPersistentStore * _Nonnull)store

DeclarationDeprecation
From
+ (NSDictionary *)metadataForPersistentStoreOfType:(NSString *)storeType URL:(NSURL *)url error:(NSError **)error
--
To
+ (NSDictionary<NSString *,id> * _Nullable)metadataForPersistentStoreOfType:(NSString * _Nullable)storeType URL:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error
OS X 10.11

Declaration
From
+ (NSDictionary *)metadataForPersistentStoreWithURL:(NSURL *)url error:(NSError **)error
To
+ (NSDictionary * _Null_unspecified)metadataForPersistentStoreWithURL:(NSURL * _Null_unspecified)url error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSPersistentStore *)migratePersistentStore:(NSPersistentStore *)store toURL:(NSURL *)URL options:(NSDictionary *)options withType:(NSString *)storeType error:(NSError **)error
To
- (NSPersistentStore * _Nullable)migratePersistentStore:(NSPersistentStore * _Nonnull)store toURL:(NSURL * _Nonnull)URL options:(NSDictionary * _Nullable)options withType:(NSString * _Nonnull)storeType error:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(copy) NSString *name
To
@property(copy, nullable) NSString *name

Declaration
From
- (void)performBlock:(void (^)(void))block
To
- (void)performBlock:(void (^ _Nonnull)(void))block

Declaration
From
- (void)performBlockAndWait:(void (^)(void))block
To
- (void)performBlockAndWait:(void (^ _Nonnull)(void))block

Declaration
From
- (NSPersistentStore *)persistentStoreForURL:(NSURL *)URL
To
- (__kindof NSPersistentStore * _Nullable)persistentStoreForURL:(NSURL * _Nonnull)URL

Declaration
From
@property(readonly, strong) NSArray *persistentStores
To
@property(readonly, strong, nonnull) NSArray<__kindof NSPersistentStore *> *persistentStores

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

Declaration
From
+ (void)registerStoreClass:(Class)storeClass forStoreType:(NSString *)storeType
To
+ (void)registerStoreClass:(Class _Nonnull)storeClass forStoreType:(NSString * _Nonnull)storeType

Declaration
From
- (BOOL)removePersistentStore:(NSPersistentStore *)store error:(NSError **)error
To
- (BOOL)removePersistentStore:(NSPersistentStore * _Nonnull)store error:(NSError * _Nullable * _Nullable)error

Declaration
From
+ (BOOL)removeUbiquitousContentAndPersistentStoreAtURL:(NSURL *)storeURL options:(NSDictionary *)options error:(NSError **)error
To
+ (BOOL)removeUbiquitousContentAndPersistentStoreAtURL:(NSURL * _Nonnull)storeURL options:(NSDictionary * _Nullable)options error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (void)setMetadata:(NSDictionary *)metadata forPersistentStore:(NSPersistentStore *)store
To
- (void)setMetadata:(NSDictionary<NSString *,id> * _Nullable)metadata forPersistentStore:(NSPersistentStore * _Nonnull)store

DeclarationDeprecation
From
+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreOfType:(NSString *)storeType URL:(NSURL *)url error:(NSError **)error
--
To
+ (BOOL)setMetadata:(NSDictionary<NSString *,id> * _Nullable)metadata forPersistentStoreOfType:(NSString * _Nullable)storeType URL:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error
OS X 10.11

Declaration
From
- (BOOL)setURL:(NSURL *)url forPersistentStore:(NSPersistentStore *)store
To
- (BOOL)setURL:(NSURL * _Nonnull)url forPersistentStore:(NSPersistentStore * _Nonnull)store

Declaration
From
- (NSURL *)URLForPersistentStore:(NSPersistentStore *)store
To
- (NSURL * _Nonnull)URLForPersistentStore:(NSPersistentStore * _Nonnull)store

NSPersistentStoreRequest.h

Declaration
From
@property(strong, readonly) NSPersistentStoreAsynchronousFetchResultCompletionBlock completionBlock
To
@property(strong, readonly, nullable) NSPersistentStoreAsynchronousFetchResultCompletionBlock completionBlock

Declaration
From
@property(strong, readonly) NSFetchRequest *fetchRequest
To
@property(strong, readonly, nonnull) NSFetchRequest *fetchRequest

Declaration
From
- (instancetype)initWithFetchRequest:(NSFetchRequest *)request completionBlock:(NSPersistentStoreAsynchronousFetchResultCompletionBlock)blk
To
- (instancetype _Nonnull)initWithFetchRequest:(NSFetchRequest * _Nonnull)request completionBlock:(NSPersistentStoreAsynchronousFetchResultCompletionBlock _Nullable)blk

Declaration
From
@property(nonatomic, strong) NSArray *affectedStores
To
@property(nonatomic, strong, nullable) NSArray<NSPersistentStore *> *affectedStores

NSPersistentStoreResult.h

Declaration
From
@property(strong, readonly) NSAsynchronousFetchRequest *fetchRequest
To
@property(strong, readonly, nonnull) NSAsynchronousFetchRequest *fetchRequest

Declaration
From
@property(strong, readonly) NSArray *finalResult
To
@property(strong, readonly, nullable) NSArray *finalResult

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

Declaration
From
@property(strong, readonly) NSManagedObjectContext *managedObjectContext
To
@property(strong, readonly, nonnull) NSManagedObjectContext *managedObjectContext

Declaration
From
@property(strong, readonly) NSError *operationError
To
@property(strong, readonly, nullable) NSError *operationError

Declaration
From
@property(strong, readonly) NSProgress *progress
To
@property(strong, readonly, nullable) NSProgress *progress

NSPropertyDescription.h

Declaration
From
@property(nonatomic, readonly, assign) NSEntityDescription *entity
To
@property(nonatomic, readonly, assign, nonnull) NSEntityDescription *entity

Declaration
From
@property(nonatomic, copy) NSString *name
To
@property(nonatomic, copy, nonnull) NSString *name

Declaration
From
@property(copy) NSString *renamingIdentifier
To
@property(copy, nullable) NSString *renamingIdentifier

Declaration
From
- (void)setValidationPredicates:(NSArray *)validationPredicates withValidationWarnings:(NSArray *)validationWarnings
To
- (void)setValidationPredicates:(NSArray<NSPredicate *> * _Nullable)validationPredicates withValidationWarnings:(NSArray<NSString *> * _Nullable)validationWarnings

Declaration
From
@property(nonatomic, strong) NSDictionary *userInfo
To
@property(nonatomic, strong, nullable) NSDictionary *userInfo

Declaration
From
@property(readonly, strong) NSArray *validationPredicates
To
@property(readonly, strong, nonnull) NSArray<NSPredicate *> *validationPredicates

Declaration
From
@property(readonly, strong) NSArray *validationWarnings
To
@property(readonly, strong, nonnull) NSArray *validationWarnings

Declaration
From
@property(readonly, copy) NSData *versionHash
To
@property(readonly, copy, nonnull) NSData *versionHash

Declaration
From
@property(copy) NSString *versionHashModifier
To
@property(copy, nullable) NSString *versionHashModifier

NSPropertyMapping.h

Declaration
From
@property(copy) NSString *name
To
@property(copy, nullable) NSString *name

Declaration
From
@property(strong) NSDictionary *userInfo
To
@property(strong, nullable) NSDictionary *userInfo

Declaration
From
@property(strong) NSExpression *valueExpression
To
@property(strong, nullable) NSExpression *valueExpression

NSRelationshipDescription.h

Declaration
From
@property(nonatomic, assign) NSEntityDescription *destinationEntity
To
@property(nonatomic, assign, nullable) NSEntityDescription *destinationEntity

Declaration
From
@property(nonatomic, assign) NSRelationshipDescription *inverseRelationship
To
@property(nonatomic, assign, nullable) NSRelationshipDescription *inverseRelationship

Declaration
From
@property(readonly, copy) NSData *versionHash
To
@property(readonly, copy, nonnull) NSData *versionHash

NSSaveChangesRequest.h

Declaration
From
@property(readonly, strong) NSSet *deletedObjects
To
@property(readonly, strong, nullable) NSSet<__kindof NSManagedObject *> *deletedObjects

Declaration
From
- (instancetype)initWithInsertedObjects:(NSSet *)insertedObjects updatedObjects:(NSSet *)updatedObjects deletedObjects:(NSSet *)deletedObjects lockedObjects:(NSSet *)lockedObjects
To
- (instancetype _Nonnull)initWithInsertedObjects:(NSSet<NSManagedObject *> * _Nullable)insertedObjects updatedObjects:(NSSet<NSManagedObject *> * _Nullable)updatedObjects deletedObjects:(NSSet<NSManagedObject *> * _Nullable)deletedObjects lockedObjects:(NSSet<NSManagedObject *> * _Nullable)lockedObjects

Declaration
From
@property(readonly, strong) NSSet *insertedObjects
To
@property(readonly, strong, nullable) NSSet<__kindof NSManagedObject *> *insertedObjects

Declaration
From
@property(readonly, strong) NSSet *lockedObjects
To
@property(readonly, strong, nullable) NSSet<__kindof NSManagedObject *> *lockedObjects

Declaration
From
@property(readonly, strong) NSSet *updatedObjects
To
@property(readonly, strong, nullable) NSSet<__kindof NSManagedObject *> *updatedObjects