Tuparev@EMBL-Heidelberg.de
)rfm@gnu.org
)Version: 1.103
Date: 2005/02/22 11:22:44
Copyright: (C) 1995-2001 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSProcessInfo.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Instances of this class encapsulate information on the current process. For example, you can get the arguments, environment variables, host name, or process name. There is only one instance per process, for obvious reasons, and it may be obtained through the +processInfo method.
Method summaryReturns the shared NSProcessInfo object for the current process.
Returns an array containing the arguments supplied
to start this process.
NB. In GNUstep, any
arguments of the form --GNU-Debug=... are
not included in this array... they are part
of the debug mechanism, and are hidden so that setting
debug variables will not effect the normal operation
of the program.
Please note, the special
--GNU-Debug=...
syntax differs from
that which is used to specify values for the
NSUserDefaults
system.
User defaults are set on the
command line by specifying the default name (with
a leading hyphen) as one argument, and the default
value as the following argument. The arguments used
to set user defaults are present in the array returned
by this method.
Returns a dictionary giving the environment variables which were provided for the process to use.
Returns a string which may be used as a globally
unique identifier.
The string contains the
host name, the process ID, a timestamp and a counter.
The first three values identify the process
in which the string is generated, while the fourth
ensures that multiple strings generated within the
same process are unique.
Returns the name of the machine on which this process is running.
Return a number representing the operating system
type.
The known types are listed in the header
file, but not all of the listed types are actually
implemented... some are present for MacOS-X
compatibility only.
Returns the name of the operating system in use.
Returns the process identifier number which identifies this process on this machine.
Returns the process name for this process. This may have been set using the -setProcessName: method, or may be the default process name (the file name of the binary being executed).
Change the name of the current process to newName.
- Declared in:
- Foundation/NSProcessInfo.h
Standards:
- NotOpenStep
- NotMacOS-X
- GNUstep
Provides GNUstep-specific methods for controlled debug logging (a GNUstep facility) and an internal/developer-related method.
Method summaryFallback method. The developer must call this method to initialize the NSProcessInfo system if none of the system-specific hacks to auto-initialize it are working.
Returns a indication of whether debug logging is
enabled. This returns YES
unless a
call to
-setDebugLoggingEnabled:
has been used to turn logging off.
This method returns a set of debug levels set using
the --GNU-Debug=... command line option and/or the
GNU-Debug user default.
You can modify
this set to change the debug logging under your
programs control... but such modifications are not
thread-safe.
This method permits you to turn all debug logging on or off without modifying the set of debug levels in use.
Set the file to which NSLog output should be directed.
Returns YES
on success,
NO
on failure.
By default
logging goes to standard error.