Registers an object to be inserted in the context’s persistent store the next time changes are saved.
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The managed object (
object) is registered in the receiver with a temporary global ID. It is assigned a permanent global ID when changes are committed. If the current transaction is rolled back (for example, if the receiver is sent a
rollback message) before a save operation, the object is unregistered from the receiver.
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.
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