terminate()
Attempts to quit the receiver normally.
Declaration
func terminate() -> BoolReturn Value
Returns true if the request was successfully sent, otherwise false.
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.