Contents

NSConnection

An object that manages the communication between objects in different threads or between a thread and a process running on a local or remote system.

Declaration

@interface NSConnection : NSObject

Overview

Connection objects form the backbone of the distributed objects mechanism and normally operate in the background. You use the methods of NSConnection explicitly when vending an object to other applications, when accessing such a vended object through a proxy, and when altering default communication parameters. At other times, you simply interact with a vended object or its proxy.

A single connection object may be shared by multiple threads and used to access a vended object.

Topics

Getting the Default Instance

Creating Instances

Running the Connection in a New Thread

Vending a Service

Getting a Remote Object

Getting a Conversation

Getting All NSConnection Objects

Configuring Instances

Getting Ports

Getting Statistics

Setting the Delegate

Constants

Notifications

Instance Variables

See Also

Legacy