Instance Property

isActive

Indicates whether the application is currently frontmost.

Declaration

var isActive: Bool { get }

Discussion

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.