Enumeration

NSApplication.TerminateReply

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

Declaration

enum TerminateReply : UInt

Topics

Constants

case terminateNow

It is OK to proceed with termination.

case terminateCancel

The app should not be terminated.

See Also

Terminating Applications

func applicationShouldTerminate(NSApplication) -> NSApplication.TerminateReply

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

func applicationShouldTerminateAfterLastWindowClosed(NSApplication) -> Bool

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

func applicationWillTerminate(Notification)

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