Instance Method


Returns whether the receiver was able to commit any pending edits.


- (BOOL)commitEditing;

Return Value

Returns YES if the changes were successfully applied to the model, NO otherwise.


A commit is denied if the receiver fails to apply the changes to the model object, perhaps due to a validation error.

See Also

NSEditor Conformance

- commitEditingWithDelegate:didCommitSelector:contextInfo:

Attempt to commit any currently edited results of the receiver.

- discardEditing

Causes the receiver to discard any changes, restoring the previous values.