Instance Method

referenceObjectForObjectID:

Returns the reference data used to construct a given object ID.

Declaration

- (id)referenceObjectForObjectID:(NSManagedObjectID *)objectID;

Parameters

objectID

An object ID created by the receiver.

Return Value

The reference data used to construct objectID.

Discussion

This method raises an NSInvalidArgumentException if the object ID was not created by the receiving store.

You should not override this method.

See Also

Manipulating Managed Objects

- executeRequest:withContext:error:

Returns a value as appropriate for the given request, or nil if the request cannot be completed.

- newValuesForObjectWithID:withContext:error:

Returns an incremental store node encapsulating the persistent external values of the object with a given object ID.

- newValueForRelationship:forObjectWithID:withContext:error:

Returns the relationship for the given relationship of the object with a given object ID.

- obtainPermanentIDsForObjects:error:

Returns an array containing the object IDs for a given array of newly-inserted objects.

- newObjectIDForEntity:referenceObject:

Returns a new object ID that uses given data as the key.