August 2011
Intermediate to advanced
552 pages
23h 48m
English
The NSTask object is used to create and control new processes. When the process ends, the object will post an NSTaskDidTerminateNotification notification. Before creating (or launching) the new process, you will set the attributes of the new process with these methods:
- (void)setLaunchPath: (NSString *)path
Sets the path to the code that will be executed when the process is created.
- (void)setArguments: (NSArray *)arguments
Takes an array of strings that will be the arguments to the program.
- (void)setEnvironment: (NSDictionary *)dict
You can use this to set the environment variables. If unset, the environment ...
Read now
Unlock full access