home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / Foundation.framework / Versions / B / Headers / NSProcessInfo.h < prev    next >
Encoding:
Text File  |  1996-10-25  |  908 b   |  49 lines

  1. /*    NSProcessInfo
  2.     Copyright 1994-1996, NeXT Software, Inc.  All rights reserved.
  3. */
  4.  
  5. #import <Foundation/NSObject.h>
  6.  
  7. enum {    /* Constants returned by -operatingSystem */
  8.     NSWindowsNTOperatingSystem = 1,
  9.     NSWindows95OperatingSystem,
  10.     NSSolarisOperatingSystem,
  11.     NSHPUXOperatingSystem,
  12.     NSMACHOperatingSystem,
  13.     NSSunOSOperatingSystem,
  14.     NSOSF1OperatingSystem
  15. };
  16.  
  17. @class NSArray, NSString, NSDictionary;
  18.  
  19. @interface NSProcessInfo : NSObject {
  20.     @private    
  21.     NSDictionary    *environment;
  22.     NSArray        *arguments;
  23.     NSString        *hostName;    
  24.     NSString        *name;
  25.     void        *reserved;
  26. }
  27.  
  28. + (NSProcessInfo *)processInfo;    
  29.  
  30. - (NSDictionary *)environment;
  31.  
  32. - (NSArray *)arguments;
  33.  
  34. - (NSString *)hostName;
  35.  
  36. - (NSString *)processName;
  37.  
  38. - (void)setProcessName:(NSString *)newName;
  39.  
  40. - (NSString *)globallyUniqueString;
  41.  
  42. #if !defined(STRICT_OPENSTEP)
  43.  
  44. - (unsigned int)operatingSystem;
  45.  
  46. #endif /* STRICT_OPENSTEP */
  47.  
  48. @end
  49.