- discardEditing
Causes the receiver to discard any changes, restoring the previous values.
- commitEditingAndReturnError:
Attempt to commit pending edits, returning an error in the case of failure.
Availability
Technology
- (void)commitEditingWithDelegate:(id)delegate
didCommitSelector:(SEL)didCommitSelector
contextInfo:(void *)contextInfo;
The receiver must have been registered as the editor of an object using object
, and has not yet been unregistered by a subsequent invocation of object
. When the committing has either succeeded or failed, send the following message to the specified object. The did
method must have the following method signature:
If an error occurs while attempting to commit, for example if key-value coding validation fails, an implementation of this method should typically send the NSView in which editing is being done a present
message, specifying the view's containing window.
- discardEditing
- commitEditingAndReturnError: