Structure

NSApplication.ActivationOptions

The following flags are for activate(options:).

Declaration

struct ActivationOptions

Topics

Options

static var activateAllWindows: NSApplication.ActivationOptions

By default, activation brings only the main and key windows forward. If you specify NSApplicationActivateAllWindows, all of the application's windows are brought forward.

static var activateIgnoringOtherApps: NSApplication.ActivationOptions

The application is activated regardless of the currently active app.

Initializers

init(rawValue: UInt)

Initializes a new activation options structure.

Relationships

Conforms To

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.

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.