Marks an object for conflict detection.
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- 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.
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