Displays an alert asking if the user wants to review unsaved documents, quit regardless of unsaved documents, or cancel the save operation.
- macOS 10.0+
The title of the alert.
A Boolean indicating whether the operation can be canceled.
The object that calls the selector.
The selector to call when all documents have been reviewed.
A pointer to user-supplied data.
delegate to the panel. Calls
true if quit without saving is chosen or if there are no dirty documents, and
false otherwise. If the user selects the “Review Unsaved” option,
close is called. This method is called when the user chooses the Quit menu command, and also when the computer power is being turned off. Note that
title is ignored. Pass the
context object with the callback.
did callback method should have the following signature: