Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
For interprocess communication, you should use XPC instead; see XPC Services API Reference for more information.
Introduction to Distributed Objects
The Objective-C runtime supports an interprocess messaging solution called “distributed objects.” This mechanism enables a Cocoa application to call an object in a different Cocoa application (or a different thread in the same application). The applications can even be running on different computers on a network.
This programming topic describes the Cocoa classes that form the distributed objects system.
Cocoa’s distributed objects system is available only to Objective-C applications.
Organization of This Document
The Objective-C language support for distributed objects is described in detail in the “Remote Messaging” section of The Runtime System in The Objective-C Programming Language. You should be familiar with it before reading this topic. This topic extends that discussion by describing the Cocoa classes used to implement distributed objects.
The classes are divided into the following categories:
More detailed discussion and examples of how to use distributed objects are covered in the following tasks: