Manipulating Applications
This task explains how to use NSWorkspace to manipulate
applications. For information on how to use the .app
extension,
see Use of .app Extension.
Manipulating Applications
The NSWorkspace methods launchApplication:
and launchApplication:showIcon:autoLaunch:
launch applications using Launch Services.
The application name can include or omit the .app
extension.
Locating Applications
The fullPathForApplication:
method
returns the full path for an application, specified with or without
the .app
extension.
Hiding Applications
To hide all other applications, you can use the hideOtherApplications
method.
Since the user usually has access to this functionality through
other means, you should rarely have to invoke this method.
Copyright © 2002, 2009 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2009-06-25