Instance Property


Indicates whether the application is currently frontmost.


var isActive: Bool { get }


This property is observable using key-value observing.

See Also

Activating Applications

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

Attempts to activate the application using the specified options.

var activationPolicy: NSApplication.ActivationPolicy

Indicates the activation policy of the application.

enum NSApplication.ActivationPolicy

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