Instance Method

managedObjectIDForURIRepresentation:

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.

Declaration

- (NSManagedObjectID *)managedObjectIDForURIRepresentation:(NSURL *)url;

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.

See Also