Type Alias

NSWorkspaceLaunchConfigurationKey

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

Declaration

typedef NSString *NSWorkspaceLaunchConfigurationKey;

Topics

Type Properties

NSWorkspaceLaunchConfigurationAppleEvent

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.

NSWorkspaceLaunchConfigurationArchitecture

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

NSWorkspaceLaunchConfigurationArguments

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.

NSWorkspaceLaunchConfigurationEnvironment

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.

See Also

Manipulating Applications

- launchApplication:

Launches the specified app.

Deprecated
- launchApplication:showIcon:autolaunch:

Launches the specified app using additional options.

Deprecated
- launchApplicationAtURL:options:configuration:error:

Launches the app at the specified URL.

Deprecated
- hideOtherApplications

Hides all applications other than the sender.