Sent to notify the delegate that the application is about to terminate.
- macOS 10.0+
The application object that is about to be terminated.
One of the values defined in
NSApplication constants indicating whether the application should terminate. For compatibility reasons, a return value of
false is equivalent to
NSApplication, and a return value of
true is equivalent to
This method is called after the application’s Quit menu item has been selected, or after the
terminate(_:) method has been called. Generally, you should return
NSApplication to allow the termination to complete, but you can cancel the termination process or delay it somewhat as needed. For example, you might delay termination to finish processing some critical data but then terminate the application as soon as you are done by calling the