Instance Property

hasChanges

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

Declaration

@property(nonatomic, readonly) BOOL hasChanges;

Discussion

YES if the receiver has been inserted, has been deleted, or has unsaved changes, otherwise NO. The result is the equivalent of OR-ing the values of inserted, deleted, and updated.

See Also

Getting State Information

managedObjectContext

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

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.

fault

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

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