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.
SDK
- macOS 10.0–10.13Deprecated
Framework
- Foundation
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.