Contents

newCacheNode(for:)

Returns a new cache node for a given managed object.

Declaration

func newCacheNode(for managedObject: NSManagedObject) -> NSAtomicStoreCacheNode

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