Up
Authors
- Scott Christley(
scottc@net-community.com
)
-
- Richard Frith-Macdonald(
richard@brainstorm.co.uk
)
-
- Fred Kiefer(
FredKiefer@gmx.de
)
-
Workspace class
Copyright: (C) 1996-1999, 2001 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSWorkspace.h
Standards:
Description forthcoming.
Method summary
+ (NSWorkspace*) sharedWorkspace;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) checkForRemovableMedia;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (int) extendPowerOffBy: (int)requested;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) fileSystemChanged;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) findApplications;
Standards: GNUstep, MacOS-X, OpenStep
Updates Registered Services and File Types
- (NSString*) fullPathForApplication: (NSString*)appName;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) getFileSystemInfoForPath: (NSString*)fullPath isRemovable: (BOOL*)removableFlag isWritable: (BOOL*)writableFlag isUnmountable: (BOOL*)unmountableFlag description: (NSString**)description type: (NSString**)fileSystemType;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) getInfoForFile: (NSString*)fullPath application: (NSString**)appName type: (NSString**)type;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) hideOtherApplications;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (NSImage*) iconForFile: (NSString*)aPath;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (NSImage*) iconForFileType: (NSString*)fileType;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (NSImage*) iconForFiles: (NSArray*)pathArray;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) isFilePackageAtPath: (NSString*)fullPath;
Standards: NotOpenStep, GNUstep, MacOS-X
Description forthcoming.
- (BOOL) launchApplication: (NSString*)appName;
Standards: GNUstep, MacOS-X, OpenStep
Calls
-launchApplication:showIcon:autolaunch:
with arguments set to show the icon but not set it up as an autolaunch.
- (BOOL) launchApplication: (NSString*)appName showIcon: (BOOL)showIcon autolaunch: (BOOL)autolaunch;
Standards: GNUstep, MacOS-X, OpenStep
Launches the specified application (unless it is
alreeady running)
- (NSArray*) mountNewRemovableMedia;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (NSArray*) mountedLocalVolumePaths;
Standards: NotOpenStep, GNUstep, MacOS-X
Description forthcoming.
- (NSArray*) mountedRemovableMedia;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) noteFileSystemChanged;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) noteFileSystemChanged: (NSString*)path;
Standards: NotOpenStep, GNUstep, MacOS-X
Description forthcoming.
- (void) noteUserDefaultsChanged;
Standards: GNUstep, MacOS-X, OpenStep
Simply makes a note that the user defaults database
has changed.
- (NSNotificationCenter*) notificationCenter;
Standards: GNUstep, MacOS-X, OpenStep
Returns the workspace notification center
- (BOOL) openFile: (NSString*)fullPath;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) openFile: (NSString*)fullPath fromImage: (NSImage*)anImage at: (NSPoint)point inView: (NSView*)aView;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) openFile: (NSString*)fullPath withApplication: (NSString*)appName;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) openFile: (NSString*)fullPath withApplication: (NSString*)appName andDeactivate: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) openTempFile: (NSString*)fullPath;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) openURL: (NSURL*)url;
Standards: NotOpenStep, GNUstep, MacOS-X
Description forthcoming.
- (BOOL) performFileOperation: (NSString*)operation source: (NSString*)source destination: (NSString*)destination files: (NSArray*)files tag: (int*)tag;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) selectFile: (NSString*)fullPath inFileViewerRootedAtPath: (NSString*)rootFullpath;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (void) slideImage: (NSImage*)image from: (NSPoint)fromPoint to: (NSPoint)toPoint;
Standards: GNUstep, MacOS-X, OpenStep
Animating an Image- slides it from one point on
the screen to another.
- (BOOL) unmountAndEjectDeviceAtPath: (NSString*)path;
Standards: GNUstep, MacOS-X, OpenStep
Description forthcoming.
- (BOOL) userDefaultsChanged;
Standards: GNUstep, MacOS-X, OpenStep
Returns a flag to say if the defaults database has
changed since the last time this method was called.
- Declared in:
- AppKit/NSWorkspace.h
Standards:
- NotOpenStep
- NotMacOS-X
- GNUstep
Description forthcoming.
Method summary
- (NSImage*) appIconForApp: (NSString*)appName;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Returns the application icon for the given app. Or
null if none defined or appName is not a
valid application name.
- (NSBundle*) bundleForApp: (NSString*)appName;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Returns the application bundle for the named
application.
- (NSString*) getBestAppInRole: (NSString*)role forExtension: (NSString*)ext;
Standards: NotOpenStep, NotMacOS-X, GNUstep
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.
- (NSString*) getBestIconForExtension: (NSString*)ext;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Returns the path set for the icon matching the
image by
-setBestIcon:forExtension:
- (NSDictionary*) infoForExtension: (NSString*)ext;
Standards: NotOpenStep, NotMacOS-X, GNUstep
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.
- (NSString*) locateApplicationBinary: (NSString*)appName;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Requires the path to an application wrapper as an
argument, and returns the full path to the
executable.
- (void) setBestApp: (NSString*)appName inRole: (NSString*)role forExtension: (NSString*)ext;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Sets up a user preference for which app should be used
to open files of the specified extension.
- (void) setBestIcon: (NSString*)iconPath forExtension: (NSString*)ext;
Standards: NotOpenStep, NotMacOS-X, GNUstep
Sets up a user preference for which icon should be
used to represent the specified file extension.
Up