---
title: "reply(toApplicationShouldTerminate:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplication/reply(toapplicationshouldterminate:)"
---

# reply(toApplicationShouldTerminate:)

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

## Declaration

```swift
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

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

- [terminate(_:)](appkit/nsapplication/terminate(_:).md)
