Structure

NSWorkspace.LaunchConfigurationKey

The following keys can be used in the configuration dictionary of the launchApplication(at:options:configuration:) method. Each key is optional, and if omitted, default behavior is applied.

Declaration

struct LaunchConfigurationKey

Topics

Type Properties

static let appleEvent: NSWorkspace.LaunchConfigurationKey

The value is the first NSAppleEventDescriptor to send to the new app. If an instance of the app is already running, this is sent to that app.

static let architecture: NSWorkspace.LaunchConfigurationKey

The value is an NSNumber containing an Mach-O Architecture constant. Ignored if a new instance of the app is not launched.

static let arguments: NSWorkspace.LaunchConfigurationKey

The value is an NSArray of NSStrings, passed to the new app in the argv parameter. Ignored if a new instance of the app is not launched. This constant is not available to sandboxed apps.

static let environment: NSWorkspace.LaunchConfigurationKey

The value is an NSDictionary, mapping NSStrings to NSStrings, containing environment variables to set for the new app. Ignored if a new instance of the app is not launched. This constant is not available to sandboxed apps.

Relationships