O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Interapplication Communication

Several of Cocoa’s classes provide support for interapplication and interthread communication. The Foundation class NSPipe provides an interface to Unix pipes, a long-time staple of Unix interprocess communication (IPC). The Foundation framework also implements a distributed notification system whereby notifications (discussed in Chapter 2) are sent between applications. The NSDistributedNotificationCenter class registers observers with the distributed notification system.

Finally, Cocoa provides a means for high-level IPC, known as distributed objects, that permits object sharing across process boundaries, even on different computers. Figure 7-1 shows the classes involved in interprocess communication.

IPC classes
Figure 7-1. IPC classes

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required