NSWorkspace Class Reference
PDF
Overview
Tasks
Accessing the Shared NSWorkspace Instance
Accessing the NSWorkspace Notification Center
Opening Files
Manipulating Applications
Manipulating Files
Manipulating Uniform Type Identifier Information
Requesting Information
Image Animation
Requesting Additional Time Before Logout
Tracking Changes to the File System
Updating Registered Services and File Types
Tracking Changes to the Defaults Database
Tracking Status Changes for Applications and Devices
Providing Custom Icons
Unmounting a Device
Working with Bundles
Managing the Desktop Image
Performing Finder Spotlight Searches
Finder File Labels
Class Methods
runningApplications
sharedWorkspace
Instance Methods
absolutePathForAppBundleWithIdentifier:
activateFileViewerSelectingURLs:
activeApplication
desktopImageOptionsForScreen:
desktopImageURLForScreen:
duplicateURLs:completionHandler:
extendPowerOffBy:
fileLabelColors
fileLabels
filenameExtension:isValidForType:
fullPathForApplication:
getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:
getInfoForFile:application:type:
hideOtherApplications
iconForFile:
iconForFiles:
iconForFileType:
isFilePackageAtPath:
launchApplication:
launchApplication:showIcon:autolaunch:
launchApplicationAtURL:options:configuration:error:
launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:
launchedApplications
localizedDescriptionForType:
mountedLocalVolumePaths
mountedRemovableMedia
noteFileSystemChanged:
notificationCenter
openFile:
openFile:fromImage:at:inView:
openFile:withApplication:
openFile:withApplication:andDeactivate:
openURL:
openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:
performFileOperation:source:destination:files:tag:
preferredFilenameExtensionForType:
recycleURLs:completionHandler:
selectFile:inFileViewerRootedAtPath:
setDesktopImageURL:forScreen:options:error:
setIcon:forFile:options:
showSearchResultsForQueryString:
type:conformsToType:
typeOfFile:error:
unmountAndEjectDeviceAtPath:
unmountAndEjectDeviceAtURL:error:
URLForApplicationToOpenURL:
URLForApplicationWithBundleIdentifier:
Constants
File Types
Workspace Launch Configuration Options
File Operations
Desktop Image Dictionary Keys
NSWorkspaceLaunchOptions
Volume Mounting Notification User Info Keys
NSWorkspaceDidRenameVolumeNotification User Info Keys
NSWorkspaceApplicationKey User Info Key
Workspace icon creation options
Notifications
NSWorkspaceWillLaunchApplicationNotification
NSWorkspaceDidLaunchApplicationNotification
NSWorkspaceDidTerminateApplicationNotification
NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification
NSWorkspaceDidHideApplicationNotification
NSWorkspaceDidUnhideApplicationNotification
NSWorkspaceDidActivateApplicationNotification
NSWorkspaceDidDeactivateApplicationNotification
NSWorkspaceDidRenameVolumeNotification
NSWorkspaceDidMountNotification
NSWorkspaceWillUnmountNotification
NSWorkspaceDidUnmountNotification
NSWorkspaceDidPerformFileOperationNotification
NSWorkspaceDidChangeFileLabelsNotification
NSWorkspaceActiveSpaceDidChangeNotification
NSWorkspaceDidWakeNotification
NSWorkspaceWillPowerOffNotification
NSWorkspaceWillSleepNotification
NSWorkspaceScreensDidSleepNotification
NSWorkspaceScreensDidWakeNotification
Appendix A: Deprecated NSWorkspace Methods
Deprecated in Mac OS X v10.6
checkForRemovableMedia
fileSystemChanged
findApplications
mountNewRemovableMedia
noteFileSystemChanged
noteUserDefaultsChanged
openTempFile:
slideImage:from:to:
userDefaultsChanged
Revision History
Index
COMPANION GUIDE
Workspace Services Programming Topics