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
Class Methods
sharedWorkspace
Instance Methods
absolutePathForAppBundleWithIdentifier:
activeApplication
checkForRemovableMedia
extendPowerOffBy:
fileNameExtension:isValidForType:
fileSystemChanged
findApplications
fullPathForApplication:
getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:
getInfoForFile:application:type:
hideOtherApplications
iconForFile:
iconForFiles:
iconForFileType:
isFilePackageAtPath:
launchApplication:
launchApplication:showIcon:autolaunch:
launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:
launchedApplications
localizedDescriptionForType:
mountedLocalVolumePaths
mountedRemovableMedia
mountNewRemovableMedia
noteFileSystemChanged
noteFileSystemChanged:
noteUserDefaultsChanged
notificationCenter
openFile:
openFile:fromImage:at:inView:
openFile:withApplication:
openFile:withApplication:andDeactivate:
openTempFile:
openURL:
openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:
performFileOperation:source:destination:files:tag:
preferredFilenameExtensionForType:
selectFile:inFileViewerRootedAtPath:
setIcon:forFile:options:
slideImage:from:to:
type:conformsToType:
typeOfFile:error:
unmountAndEjectDeviceAtPath:
userDefaultsChanged
Constants
File Types
File Operation Constants
NSWorkspaceLaunchOptions
Launch Options
Workspace icon creation options
Notifications
NSWorkspaceDidLaunchApplicationNotification
NSWorkspaceDidMountNotification
NSWorkspaceDidPerformFileOperationNotification
NSWorkspaceDidTerminateApplicationNotification
NSWorkspaceDidWakeNotification
NSWorkspaceDidUnmountNotification
NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification
NSWorkspaceWillLaunchApplicationNotification
NSWorkspaceWillPowerOffNotification
NSWorkspaceWillSleepNotification
NSWorkspaceWillUnmountNotification
Revision History
Index
Companion Guide
Workspace Services Programming Topics