Causes the receiver to attempt to commit any pending edits, returning
true if successful or no edits were pending.
- macOS 10.3+
The receiver invokes
commit on any current editors, returning their response. A commit is denied if the receiver fails to apply the changes to the model object, perhaps due to a validation error.