Chapter 24. Subprocesses and Threads

IN THIS CHAPTER

Each program running on Mac OS X uses an underlying Unix process (sometimes also called a task). Mac OS X, like most operating systems, offers facilities for launching and controlling other programs. The NSWorkspace class offers facilities to launch another GUI application. Chapter 22, “Integrating with the Operating System,” covers the NSWorkspace class.

For launching and controlling command-line tools or faceless programs, such as daemons (servers), Cocoa also offers the NSTask class. This class offers much more control over the launched process than the NSWorkspace facilities. ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.