Instance Method


Merges the changes specified in a given notification.


- (void)mergeChangesFromContextDidSaveNotification:(NSNotification *)notification;



An instance of an NSManagedObjectContextDidSaveNotification notification posted by another context.


This method refreshes any objects which have been updated in the other context, faults in any newly-inserted objects, and invokes deleteObject:: on those which have been deleted.

You can pass a NSManagedObjectContextDidSaveNotification notification posted by a managed object context on another thread, however you must not use the managed objects in the user info dictionary directly. For more details, see Concurrency with Core Data.

See Also

Managing Concurrency


A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent context.


The concurrency type for the context.


Returns the token associated with the query generation currently in use by this context.


The merge policy of the context.


The author for the context that is used as an identifier in persistent history transactions.

- setQueryGenerationFromToken:error:

Sets the query generation this context should use.

+ mergeChangesFromRemoteContextSave:intoContexts:

Handles changes from other processes or from a serialized state.


Constants to indicate the concurrency pattern with which a context will be used.


Constant used to reference the query generation token.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software