September 2002
Intermediate to advanced
1272 pages
31h 12m
English
Both threads and subprocesses can be used to perform work in the background. This allows long running operations to proceed without locking up a user interface. Sometimes it is difficult to choose whether to solve a problem using a subprocess or a thread.
A common use for subprocesses is to wrap Unix commands. There are many useful programs available from the Unix community, but they generally lack a good graphical user interface. With some, the command-line interface borders on the incomprehensible. By launching such a command from an NSTask, it is possible to have the Unix command do all the heavy lifting while the program that launched it presents a logical user interface. The program that the user ...
Read now
Unlock full access