---
title: terminate()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsrunningapplication/terminate()
---

# terminate()

Attempts to quit the receiver normally.

## Declaration

```swift
func terminate() -> Bool
```

## Return Value

Return Value Returns true if the request was successfully sent, otherwise false.

## Discussion

Discussion This method will return false if the application is no longer running when the terminate message is sent to the receiver. This method may return before the receiver exits; you should observe the terminated property to determine when the application terminates. Sandboxed applications can’t use this method to terminate other applications. This method returns false when called from a sandboxed application.

## See Also

### Terminating applications

- [forceTerminate()](appkit/nsrunningapplication/forceterminate().md)
- [isTerminated](appkit/nsrunningapplication/isterminated.md)
- [terminateAutomaticallyTerminableApplications()](appkit/nsrunningapplication/terminateautomaticallyterminableapplications().md)
