Structure

NSApplication.ActivationOptions

The following flags are for activate(options:).

Topics

Constants

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

By default, activation deactivates the calling app (assuming it was active), and then the new app is activated only if there is no currently active application. This prevents the new app from stealing focus from the user, if the app is slow to activate and the user has switched to a different app in the interim. However, if you specify NSApplicationActivateIgnoringOtherApps, the application is activated regardless of the currently active app, potentially stealing focus from the user. You should rarely pass this flag because stealing key focus produces a very bad user experience.

Relationships

Conforms To