Instance Property

inserted

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

Declaration

@property(nonatomic, getter=isInserted, readonly) BOOL inserted;

Discussion

YES if the receiver has been inserted in a managed object context, otherwise NO. 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.

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