Instance Method

managedObjectContextDidRegisterObjects(with:)

Indicates that objects identified by a given array of object IDs are in use in a managed object context.

Declaration

func managedObjectContextDidRegisterObjects(with objectIDs: [NSManagedObjectID])

Parameters

objectIDs

An array of object IDs.

Discussion

This method and managedObjectContextDidUnregisterObjects(with:) allow managed object contexts to communicate interest in the row data of specific objects in a manner akin to reference counting. For more details, see managedObjectContextDidUnregisterObjects(with:).

See Also

Responding to Context Changes

func managedObjectContextDidUnregisterObjects(with: [NSManagedObjectID])

Indicates that objects identified by a given array of object IDs are no longer being used by a managed object context.

Beta Software

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