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.

Limitations

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: