Enumeration

NSApplicationTerminateReply

Constants used by the delegate method applicationShouldTerminate: to determine whether an app should terminate.

Declaration

typedef enum NSApplicationTerminateReply : NSUInteger {
    ...
} NSApplicationTerminateReply;

Topics

Constants

NSTerminateNow

It is OK to proceed with termination.

NSTerminateCancel

The app should not be terminated.

See Also

Terminating Applications

- applicationShouldTerminate:

Sent to notify the delegate that the application is about to terminate.

- applicationShouldTerminateAfterLastWindowClosed:

Invoked when the user closes the last window the application has open.

- applicationWillTerminate:

Sent by the default notification center immediately before the application terminates.