Instance Property

deleted

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

Declaration

@property(nonatomic, getter=isDeleted, readonly) BOOL deleted;

Discussion

YES if Core Data will ask the persistent store to delete the object during the next save operation, otherwise NO. It may return NO at other times, particularly after the object has been deleted. The immediacy with which it will stop returning YES depends on where the object is in the process of being deleted.

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.

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.