Enumeration

NSWorkspaceLaunchOptions

Declaration

typedef enum NSWorkspaceLaunchOptions : NSUInteger {
    ...
} NSWorkspaceLaunchOptions;

Topics

Constants

NSWorkspaceLaunchAndPrint

Print items instead of opening them.

NSWorkspaceLaunchWithErrorPresentation

Display an error panel to the user if a failure occurs.

NSWorkspaceLaunchInhibitingBackgroundOnly

Causes launch to fail if the target is background-only.

NSWorkspaceLaunchWithoutAddingToRecents

Do not add the app or documents to the Recents menu.

NSWorkspaceLaunchWithoutActivation

Launch the app but do not bring it into the foreground.

NSWorkspaceLaunchAsync

Launch the app and return the results asynchronously.

NSWorkspaceLaunchAllowingClassicStartup

Start up the Classic compatibility environment, if it is required by the app.

Deprecated
NSWorkspaceLaunchPreferringClassic

Force the app to launch in the Classic compatibility environment.

Deprecated
NSWorkspaceLaunchNewInstance

Create a new instance of the app, even if one is already running.

NSWorkspaceLaunchAndHide

Tell the app to hide itself as soon as it has finished launching.

NSWorkspaceLaunchAndHideOthers

Hide all apps except the newly launched one.

NSWorkspaceLaunchDefault

Launch the app asynchronously and launch it in the Classic environment, if required.

See Also

Manipulating Applications

- launchApplication:

Launches the specified app.

- launchApplication:showIcon:autolaunch:

Launches the specified app using additional options.

- launchApplicationAtURL:options:configuration:error:

Launches the app at the specified URL.

- hideOtherApplications

Hides all applications other than the sender.

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.