Instance Property

updated

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

Declaration

@property(nonatomic, getter=isUpdated, readonly) BOOL updated;

Discussion

YES if the receiver has unsaved changes, otherwise NO. The receiver has unsaved changes if it has been updated since its managed object context was last saved.

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.

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