The action of the File menu item Revert in a document-based app.
The control sending the message.
The default implementation of this method presents an alert dialog giving the user the opportunity to cancel the operation. If the user chooses to continue, the method ensures that any editor registered using the Cocoa Bindings NSEditorRegistration informal protocol has discarded its changes and then invokes revertToContentsOfURL:ofType:error:. If that returns NO, the method presents the error to the user in an document-modal alert dialog.