Instance Method


Returns an object ID for the specified URI representation of an object ID if a matching store is available, or nil if a matching store cannot be found.


func managedObjectID(forURIRepresentation url: URL) -> NSManagedObjectID?



An URL object containing a URI that specify a managed object.

Return Value

An object ID for the object specified by URL.


The URI representation contains a UUID of the store the ID is coming from, and the coordinator can match it against the stores added to it.

See Also

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