Marks an object for conflict detection.
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
If on the next invocation of
object has been modified in its persistent store, the save fails. This allows optimistic locking for unchanged objects. Conflict detection is always performed on changed or deleted objects.
Managing Managed Objects
The set of objects that have been inserted into the context but not yet saved in a persistent store.
The set of objects registered with the context that have uncommitted changes.
The set of objects that will be removed from their persistent store during the next save operation.
Registers an object to be inserted in the context’s persistent store the next time changes are saved.
Specifies an object that should be removed from its persistent store when changes are committed.