Contents

reply(toApplicationShouldTerminate:)

Responds to NSTerminateLater once the app knows whether it can terminate.

Declaration

func reply(toApplicationShouldTerminate shouldTerminate: Bool)

Parameters

  • shouldTerminate:

    Specify True if you want the app to terminate; otherwise, specify False.

Discussion

If your app delegate returns NSTerminateLater from its applicationShouldTerminate(_:) method, your code must subsequently call this method to let the NSApplication object know whether it can actually terminate itself.

See Also

Terminating the app