ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/FoundationKit/Classes/NSProcessInfo.rtf

This is NSProcessInfo.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s8 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSProcessInfo 
pard s21 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSObject
fs20 
fs28 s12 f0 b fs24 Conforms To:tab b0 fs28 f1 NSObject (NSObject)
fs20 
fs28 s13 f0 b fs24 Declared In:tab b0 fs28 f1 Foundation/NSProcessinfo.h
fs20 
fs28 pard s35 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s2 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 The NSProcessInfo class provides methods to access process-wide information. An NSProcessInfo object can return such information as the arguments, environment, host name, or process name. The b processInfob0  class method returns an NSProcessInfo object. For example, the following code creates an NSProcessInfo object, which then provides the name of the current process:
fs16 
fs28 pard s10 li1231 fi0 ri1007 ql f2 fs20 [[NSProcessInfo processInfo] processName];
s35 li100 fi1130 fi0 f0 b fs28 fs48 
fs28 Getting an NSProcessInfo Object
fs14 
fs28 pard s14 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 + (NSProcessInfo *)b processInfob0 tab Returns the NSProcessInfo object for the process. It is already initialized. An NSProcessInfo object is created the first time this method is invoked, and that same object is returned on each subsequent invocation.
pard s35 li100 fi0 ri1007 ql f0 b fs48 
fs28 Returning Process Information
fs14 
fs28 pard s14 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSArray *)b argumentsb0 tab Returns the arguments as an array of NSStrings from the command line.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSDictionary *)b environmentb0 tab Returns a dictionary of variables defined for the environment from which the process was launched.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSString *)b hostNameb0 tab Returns the name of the host system.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSString *)b processNameb0 tab Returns the name of the process under which this program'27s user defaults domain is created, and is the name used in error messages. It does not uniquely identify the process.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSString *)b globallyUniqueStringb0 tab Returns a globally unique string to identify the process. This method uses the host name, process ID, and a timestamp to ensure that the string returned will be globally unique.
pard s35 li100 fi0 ri1007 ql f0 b fs48 
fs28 Specifying a Process Name
fs14 
fs28 pard s14 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b setProcessName:b0 (NSString *)i newNamei0 tab Sets the name of the process to i newNamei0 . Warning: Aspects of the environment like userDefaults might depend on the process name, so be very careful if you change this. Setting the process name this way is not thread-safe.
fi-6552 fs16 
fs28 fi-6552 
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.