[Previous] [Up]

NSWorkspace

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSWorkspace

NSWorkspace

Declared in: Gui/NSWorkspace.h

Inherits from: NSObject

Conforms to: NSObject


Instance Variables

Methods


Class Methods

sharedWorkspace

+ (NSWorkspace*) sharedWorkspace;


Instances Methods

checkForRemovableMedia

- (void) checkForRemovableMedia;

extendPowerOffBy:

- (int) extendPowerOffBy: (int)requested;

fileSystemChanged

- (BOOL) fileSystemChanged;

findApplications

- (void) findApplications;

fullPathForApplication:

- (NSString*) fullPathForApplication: (NSString*)appName;

getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:

- (BOOL) getFileSystemInfoForPath: (NSString*)fullPath isRemovable: (BOOL*)removableFlag isWritable: (BOOL *)writableFlag isUnmountable: (BOOL*)unmountableFlag description: (NSString **)description type: (NSString**)fileSystemType;

getInfoForFile:application:

- (BOOL) getInfoForFile: (NSString*)fullPath application: (NSString**)appName;

hideOtherApplications

- (void) hideOtherApplications;

iconForFile:

- (NSImage*) iconForFile: (NSString*)fullPath;

iconForFileType:

- (NSImage*) iconForFileType: (NSString*)fileType;

iconForFiles:

- (NSImage*) iconForFiles: (NSArray*)fullPaths;

launchApplication:

- (BOOL) launchApplication: (NSString*)appName;

launchApplication:showIcon:autolaunch:

- (BOOL) launchApplication: (NSString*)appName showIcon: (BOOL)showIcon autolaunch: (BOOL)autolaunch;

mountNewRemovableMedia

- (NSArray*) mountNewRemovableMedia;

mountedRemovableMedia

- (NSArray*) mountedRemovableMedia;

noteFileSystemChanged

- (void) noteFileSystemChanged;

noteUserDefaultsChanged

- (void) noteUserDefaultsChanged;

notificationCenter

- (NSNotificationCenter*) notificationCenter;

openFile:

- (BOOL) openFile: (NSString*)fullPath;

openFile:fromImage:at:inView:

- (BOOL) openFile: (NSString*)fullPath fromImage: (NSImage*)anImage at: (NSPoint)point inView: (NSView*)aView;

openFile:withApplication:

- (BOOL) openFile: (NSString*)fullPath withApplication: (NSString*)appName;

openFile:withApplication:andDeactivate:

- (BOOL) openFile: (NSString*)fullPath withApplication: (NSString*)appName andDeactivate: (BOOL)flag;

openTempFile:

- (BOOL) openTempFile: (NSString*)fullPath;

performFileOperation:source:destination:files:tag:

- (BOOL) performFileOperation: (NSString*)operation source: (NSString *)source destination: (NSString*)destination files: (NSArray *)files tag: (int*)tag;

selectFile:inFileViewerRootedAtPath:

- (BOOL) selectFile: (NSString*)fullPath inFileViewerRootedAtPath: (NSString*)rootFullPath;

slideImage:from:to:

- (void) slideImage: (NSImage*)image from: (NSPoint)fromPoint to: (NSPoint)toPoint;

unmountAndEjectDeviceAtPath:

- (BOOL) unmountAndEjectDeviceAtPath: (NSString*)path;

userDefaultsChanged

- (BOOL) userDefaultsChanged;