Instance Property

fault

A Boolean value that indicates whether the managed object is a fault.

Declaration

@property(nonatomic, getter=isFault, readonly) BOOL fault;

Discussion

YES if the receiver is a fault, otherwise NO. Knowing whether an object is a fault is useful in many situations when computations are optional. It can also be used to avoid growing the object graph unnecessarily (which may improve performance as it can avoid time-consuming fetches from data stores).

If this property is NO, then the receiver's data must be in memory. However, if this property is YES, it does not mean that the data is not in memory. The data may be in memory, or it may not, depending on many factors influencing caching.

If the receiver is a fault, accessing this property does not cause it to fire.

See Also

Getting State Information

managedObjectContext

The managed object context with which the managed object is registered.

hasChanges

A Boolean value that indicates whether the managed object has been inserted, has been deleted, or has unsaved changes.

inserted

A Boolean value that indicates whether the managed object has been inserted in a managed object context.

updated

A Boolean value that indicates whether the managed object has unsaved changes.

deleted

A Boolean value that indicates whether the managed object will be deleted during the next save.

faultingState

The faulting state of the managed object.

- hasFaultForRelationshipNamed:

Returns a Boolean value that indicates whether the relationship for a given key is a fault.

hasPersistentChangedValues

A Boolean value that indicates whether the managed object has persistent changes.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software