Sent to notify the delegate that the application is about to terminate.
- macOS 10.0+
The application object that is about to be terminated.
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
NSTerminate 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