Instance Method

initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:

Initializes a save changes request with collections of given changes.

Declaration

- (instancetype)initWithInsertedObjects:(NSSet<NSManagedObject *> *)insertedObjects updatedObjects:(NSSet<NSManagedObject *> *)updatedObjects deletedObjects:(NSSet<NSManagedObject *> *)deletedObjects lockedObjects:(NSSet<NSManagedObject *> *)lockedObjects;

Parameters

insertedObjects

Objects that were inserted into the calling context.

updatedObjects

Objects that were updated in the calling context.

deletedObjects

Objects that were deleted in the calling context.

lockedObjects

Objects that were flagged for optimistic locking on the calling context.

Return Value

A save changes request initialized with the given changes.