<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/reply(toApplicationShouldTerminate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSApplication(im)replyToApplicationShouldTerminate:"
  },
  "title" : "reply(toApplicationShouldTerminate:)"
}
-->

# reply(toApplicationShouldTerminate:)

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

```
func reply(toApplicationShouldTerminate shouldTerminate: Bool)
```

## Parameters

`shouldTerminate`

Specify <doc://com.apple.documentation/documentation/Swift/true> if you want the app to terminate; otherwise, specify <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)