Instance Method

activate(options:)

Attempts to activate the application using the specified options.

Declaration

func activate(options: NSApplicationActivationOptions = []) -> Bool

Parameters

options

The options to use when activating the application. See NSApplicationActivationOptions for the possible values.

Return Value

true if the application was activated successfully, otherwise false.

Discussion

This method will return false if the application has quit, or is not a type of application than can be activated.