NSWorkspace scottc@net-community.com richard@brainstorm.co.uk FredKiefer@gmx.de Workspace class 1996-1999, 2001 Free Software Foundation, Inc. Software documentation for the NSWorkspace class AppKit/NSWorkspace.h Description forthcoming. sharedWorkspace Description forthcoming. checkForRemovableMedia Description forthcoming. extendPowerOffBy: requested Description forthcoming. fileSystemChanged Description forthcoming. findApplications Updates Registered Services and File Types fullPathForApplication: appName Given an application name, return the full path for that application.
This method looks for the application in standard locations, and if not found there, according to MacOS-X documentation, returns nil.
If the supplied application name is an absolute path, returns that path irrespective of whether such an application exists or not. This is not the docmented debavior in the MacOS-X documentation, but is the MacOS-X implemented behavior.
If the appName has an extension, it is used, otherwise in GNUstep the standard app, debug, and profile extensions * are tried.
getFileSystemInfoForPath: fullPath isRemovable: removableFlag isWritable: writableFlag isUnmountable: unmountableFlag description: description type: fileSystemType Description forthcoming. getInfoForFile: fullPath application: appName type: type Description forthcoming. hideOtherApplications Description forthcoming. iconForFile: aPath Description forthcoming. iconForFileType: fileType Description forthcoming. iconForFiles: pathArray Description forthcoming. isFilePackageAtPath: fullPath Description forthcoming. launchApplication: appName Calls -launchApplication:showIcon:autolaunch: with arguments set to show the icon but not set it up as an autolaunch. launchApplication: appName showIcon: showIcon autolaunch: autolaunch Launches the specified application (unless it is alreeady running) mountNewRemovableMedia Description forthcoming. mountedLocalVolumePaths Description forthcoming. mountedRemovableMedia Description forthcoming. noteFileSystemChanged Description forthcoming. noteFileSystemChanged: path Description forthcoming. noteUserDefaultsChanged Simply makes a note that the user defaults database has changed. notificationCenter Returns the workspace notification center openFile: fullPath Description forthcoming. openFile: fullPath fromImage: anImage at: point inView: aView Description forthcoming. openFile: fullPath withApplication: appName Description forthcoming. openFile: fullPath withApplication: appName andDeactivate: flag Description forthcoming. openTempFile: fullPath Description forthcoming. openURL: url Description forthcoming. performFileOperation: operation source: source destination: destination files: files tag: tag Description forthcoming. selectFile: fullPath inFileViewerRootedAtPath: rootFullpath Description forthcoming. slideImage: image from: fromPoint to: toPoint Animating an Image- slides it from one point on the screen to another. unmountAndEjectDeviceAtPath: path Description forthcoming. userDefaultsChanged Returns a flag to say if the defaults database has changed since the last time this method was called.
Software documentation for the NSWorkspace(GNUstep) category AppKit/NSWorkspace.h Description forthcoming. appIconForApp: appName Returns the application icon for the given app. Or null if none defined or appName is not a valid application name. bundleForApp: appName Returns the application bundle for the named application. Accepts either a full path to an app or just the name. The extension (.app,.debug, .profile) is optional, but if provided it will be used.
Returns nil if the specified app does not exist as requested.
getBestAppInRole: role forExtension: ext Returns the 'best' application to open a file with the specified extension using the given role . If the role is nil then apps which can edit are preferred but viewers are also acceptable. Uses a user preferred app or picks any good match. getBestIconForExtension: ext Returns the path set for the icon matching the image by -setBestIcon:forExtension: infoForExtension: ext Gets the applications cache (generated by the make_services tool) and looks up the special entry that contains a dictionary of all file extensions recognised by GNUstep applications. Then finds the dictionary of applications that can handle our file and returns it. locateApplicationBinary: appName Requires the path to an application wrapper as an argument, and returns the full path to the executable. setBestApp: appName inRole: role forExtension: ext Sets up a user preference for which app should be used to open files of the specified extension. setBestIcon: iconPath forExtension: ext Sets up a user preference for which icon should be used to represent the specified file extension.