Instance Property


Indicates the activation policy of the application.


var activationPolicy: NSApplication.ActivationPolicy { get }


The value returned by this property is usually fixed, but it may change through a call to activate(options:).

This property is observable using key-value observing.

See Also

Activating Applications

var isActive: Bool

Indicates whether the application is currently frontmost.

func activate(options: NSApplication.ActivationOptions) -> Bool

Attempts to activate the application using the specified options.

enum NSApplication.ActivationPolicy

Activation policies (used by activationPolicy) that control whether and how an app may be activated.