In this section, you will learn:
how to create new processes using NSTask,
how to send data to the new process' standard in and read data from its standard out and standard error using NSPipe and NSFileHandle, and
how NSProcessInfo supplies the program with information about itself.
Your application can access its own process information using the NSProcessInfo object. Here are some of the commonly used methods on NSProcessInfo:
+ (NSProcessInfo *)processInfo
You will use this class method to get hold of the shared instance of NSProcessInfo for the current process.
- (NSDictionary *)environment
Returns a dictionary containing all the environment variables ...