Handles changes from other processes or from a serialized state.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Data
Declaration
class func mergeChanges(fromRemoteContextSave changeNotificationData: [Any Hashable : Any], into contexts: [NSManaged Object Context])
Discussion
This method more efficiently merges changes into multiple contexts as well as nested contexts. The dictionary keys should be one or more from an NSManaged
: NSInserted
, NSUpdated
, NSDeleted
. The values should be an NSArray
of either NSManaged
or NSURL
objects conforming to valid results from uri
.