home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks5 / AppKit.framework / Headers / workspaceRequest.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-21  |  3.2 KB  |  85 lines

  1. #import <Foundation/NSGeometry.h>
  2. #import <Foundation/NSObject.h>
  3.  
  4. @class NSImage, NSView, NSNotificationCenter, NSArray;
  5.  
  6. @interface NSWorkspace : NSObject {
  7.     NSNotificationCenter *notificationCenter;
  8.     int deviceStatusCount;
  9.     int applicationStatusCount;
  10. }
  11.  
  12. + (NSWorkspace *)sharedWorkspace;
  13.  
  14. - (NSNotificationCenter *)notificationCenter;
  15.  
  16.  
  17. - (BOOL)openFile:(NSString *)fullPath;
  18. - (BOOL)openFile:(NSString *)fullPath withApplication:(NSString *)appName;
  19. - (BOOL)openFile:(NSString *)fullPath withApplication:(NSString *)appName andDeactivate:(BOOL)flag;
  20.  
  21. - (BOOL)openTempFile:(NSString *)fullPath;
  22.  
  23. - (BOOL)openFile:(NSString *)fullPath fromImage:(NSImage *)anImage at:(NSPoint)point inView:(NSView *)aView;
  24.  
  25. - (BOOL)launchApplication:(NSString *)appName;
  26. - (BOOL)launchApplication:(NSString *)appName showIcon:(BOOL)showTile autolaunch:(BOOL)autolaunch;
  27. - (NSString *)fullPathForApplication:(NSString *)appName;
  28.  
  29. - (BOOL)selectFile:(NSString *)fullPath inFileViewerRootedAtPath:(NSString *)rootFullpath;
  30.  
  31. - (void)findApplications;
  32.  
  33. - (void)noteFileSystemChanged;
  34. - (BOOL)fileSystemChanged;
  35. - (void)noteUserDefaultsChanged;
  36. - (BOOL)userDefaultsChanged;
  37.  
  38. /* Return values for type in getInfoForFile: */
  39.  
  40. extern NSString *NSPlainFileType, *NSDirectoryFileType, *NSApplicationFileType;
  41. extern NSString *NSFilesystemFileType, *NSShellCommandFileType;
  42.  
  43. - (BOOL)getInfoForFile:(NSString *)fullPath application:(NSString **)appName type:(NSString **)type;
  44.  
  45. - (NSImage *)iconForFile:(NSString *)fullPath;
  46. - (NSImage *)iconForFileType:(NSString *)fileType;
  47.  
  48. - (BOOL)getInfoForFileSystemAt:(NSString *)fullPath isRemovable:(BOOL *)removableFlag isWritable:(BOOL *)writableFlag isUnmountable:(BOOL *)unmountableFlag description:(char **)description type:(char **)fileSystemType;
  49.  
  50. extern NSString *NSWorkspaceMoveOperation;
  51. extern NSString *NSWorkspaceCopyOperation;
  52. extern NSString *NSWorkspaceLinkOperation;
  53. extern NSString *NSWorkspaceCompressOperation;
  54. extern NSString *NSWorkspaceDecompressOperation;
  55. extern NSString *NSWorkspaceEncryptOperation;
  56. extern NSString *NSWorkspaceDecryptOperation;
  57. extern NSString *NSWorkspaceDestroyOperation;
  58. extern NSString *NSWorkspaceRecycleOperation;
  59. extern NSString *NSWorkspaceDuplicateOperation;
  60.  
  61. - (BOOL)performFileOperation:(NSString *)operation source:(NSString *)source destination:(NSString *)destination files:(NSArray *)files tag:(int *)tag;
  62.  
  63. - (BOOL)unmountAndEjectDeviceAtPath:(NSString *)path;
  64. - (int)extendPowerOffBy:(int)requested;
  65.  
  66. - (void)slideImage:(NSImage *)image from:(NSPoint)fromPoint to:(NSPoint)toPoint;
  67.  
  68. - (void)hideOtherApplications;
  69.  
  70. - (BOOL)getMountedRemovableMedia:(char **)mountedList;
  71. - (BOOL)mountNewRemovableMedia:(char **)newlyMountedList;
  72. - (void)checkForRemovableMedia;
  73.  
  74. @end
  75.  
  76. /* Notifications (through the special notification center) */
  77. extern NSString *NSWorkspaceDidLaunchApplicationNotification;
  78. extern NSString *NSWorkspaceDidMountNotification;
  79. extern NSString *NSWorkspaceDidPerformFileOperationNotification;
  80. extern NSString *NSWorkspaceDidTerminateApplicationNotification;
  81. extern NSString *NSWorkspaceDidUnmountNotification;
  82. extern NSString *NSWorkspaceWillLaunchApplicationNotification;
  83. extern NSString *NSWorkspaceWillPowerOffNotification;
  84. extern NSString *NSWorkspaceWillUnmountNotification;
  85.