Global Variable

NSManagedObjectContextObjectsDidChangeNotification

A notification of changes made to managed objects associated with this context.

Declaration

NSString *const NSManagedObjectContextObjectsDidChangeNotification;

Discussion

The notification is posted during processPendingChanges, after the changes have been processed, but before it is safe to call save: again (if you try, you will generate an infinite loop).

The notification object is the managed object context. The userInfo

dictionary contains the following keys: NSInsertedObjectsKey, NSUpdatedObjectsKey, and NSDeletedObjectsKey.

Note that this notification is posted only when managed objects are changed; it is not posted when managed objects are added to a context as the result of a fetch.

See Also

Managing Notifications

NSManagedObjectContextDidSaveNotification

A notification that the context completed a save.

NSManagedObjectContextWillSaveNotification

A notification that the context is about to save.

NSInsertedObjectsKey

A key for the set of objects that were inserted into the context.

NSUpdatedObjectsKey

A key for the set of objects that were updated.

NSDeletedObjectsKey

A key for the set of objects that were marked for deletion during the previous event.

NSRefreshedObjectsKey

A key for the set of objects that were refreshed but were not dirtied in the scope of this context.

NSInvalidatedObjectsKey

A key for the set of objects that were invalidated.

NSInvalidatedAllObjectsKey

A key that specifies that all objects in the context have been invalidated.