Contents

awakeFromFetch()

Provides an opportunity to add code into the life cycle of the managed object when fufilling it from a fault.

Declaration

func awakeFromFetch()

Discussion

You typically use this method to compute derived values or to recreate transient relationships from the receiver’s persistent properties.

The managed object context’s change processing is explicitly disabled around this method so that you can use public setters to establish transient values and other caches without dirtying the object or its context. Because of this, however, you should not modify relationships in this method as the inverse will not be set.

See Also

Related Documentation

Managing Change Events