Instance Method

objectIDForEntity:referenceObject:

Returns a managed object ID from the reference data for a specified entity.

Declaration

- (NSManagedObjectID *)objectIDForEntity:(NSEntityDescription *)entity referenceObject:(id)data;

Parameters

entity

An entity description object.

data

Reference data for which the managed object ID is required.

Return Value

The managed object ID from the reference data for a specified entity

Discussion

You use this method to create managed object IDs which are then used to create cache nodes for information being loaded into the store.

Special Considerations

You should not override this method.

See Also

Loading a Store

- load:

Loads the cache nodes for the receiver.

- addCacheNodes:

Registers a set of cache nodes with the receiver.