Instance Method

newCacheNodeForManagedObject:

Returns a new cache node for a given managed object.

Declaration

- (NSAtomicStoreCacheNode *)newCacheNodeForManagedObject:(NSManagedObject *)managedObject;

Parameters

managedObject

A managed object.

Return Value

A new cache node for managedObject.

Discussion

This method is invoked by the framework during a save operation, once for each newly-inserted managed object. It should pull information from the managed object and return a cache node containing the information (the node will be registered by the framework).

Special Considerations

You must override this method.

See Also

Updating Cache Nodes

- newReferenceObjectForManagedObject:

Returns a new reference object for a given managed object.

- updateCacheNode:fromManagedObject:

Updates the given cache node using the values in a given managed object.

- willRemoveCacheNodes:

Method invoked before the store removes the given collection of cache nodes.