Process Information

The NSProcessInfo class provides methods to access process-wide information. An NSProcessInfo object can return such information as the current process’s arguments, environment variables, host name, and process name.

The NSProcessInfo class is available in Objective-C only. In Java, the NSSystem class provides the same information as NSProcessInfo as well as information obtained from function calls in Objective-C. The NSSystem class object can return such additional information as the user’s name, full name, and home directory. The class also provides a method, log, to send strings to stderr.