Instance Method

changedValues

Returns a dictionary containing the keys and (old) values of persistent properties that have been changed since the last fetching or saving of the managed object.

Declaration

- (NSDictionary<NSString *,id> *)changedValues;

Return Value

A dictionary containing as keys the names of persistent properties that have changed since the receiver was last fetched or saved, and as values the new values of the properties.

Discussion

This method only reports changes to properties that are defined as persistent properties of the receiver, not changes to transient properties or custom instance variables. This method does not unnecessarily fire relationship faults.

See Also

Managing Change Events

contextShouldIgnoreUnmodeledPropertyChanges

A Boolean value that indicates whether instances of the class should be marked as having changes if an unmodeled property is changed.

- awakeFromFetch

Provides an opportunity to add code into the life cycle of the managed object when it is being fulfilled from a fault.

- awakeFromInsert

Provides an opportunity to add code into the life cycle of the managed object when it is initially created.

- awakeFromSnapshotEvents:

Provides an opportunity to add code into the life cycle of the managed object when it is being fulfilled from a snapshot.

- changedValuesForCurrentEvent

Returns a dictionary containing the keys and old values of persistent properties that have changed since the last posting of NSManagedObjectContextObjectsDidChangeNotification.

- committedValuesForKeys:

Returns a dictionary of the last fetched or saved values of the managed object for the properties specified by the given keys.

- prepareForDeletion

Provides an opportunity to add code into the life cycle of the managed object when it is about to be deleted.

- willSave

Provides an opportunity to add code into the life cycle of the managed object when it is about to be saved.

- didSave

Provides an opportunity to add code into the life cycle of the managed object after the managed object’s context completes a save operation.

- willTurnIntoFault

Provides an opportunity to add code into the life cycle of the managed object before it is converted to a fault.

- didTurnIntoFault

Provides an opportunity to add code into the life cycle of the managed object when it is turned into a fault.

+ fetchRequest

Returns a new fetch request initialized with the entity represented by this subclass.