managedObjectID(forURIRepresentation:)
Returns the object identifier for the specified URI representation.
Declaration
func managedObjectID(forURIRepresentation url: URL) -> NSManagedObjectID?Parameters
- url:
An URL object containing a URI that specify a managed object.
Return Value
An object ID for the object specified by url.
Discussion
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.