Type Method

proxyWithLocal:connection:

Returns a local proxy for a given object and connection, creating the proxy if necessary.

Declaration

+ (id)proxyWithLocal:(id)target connection:(NSConnection *)connection;

Parameters

anObject

An object in the receiver’s address space.

aConnection

The connection for the returned proxy.

Return Value

A local proxy for anObject and aConnection, creating it if necessary.

Discussion

Other applications connect to the proxy using the NSConnection connectionWithRegisteredName:host: class method.

Local proxies should be considered private to their NSConnection objects. Only an NSConnection object should use this method to create them, and your code shouldn’t retain or otherwise use local proxies.

See Also

Creating a Local Proxy

- initWithLocal:connection:

Initializes an NSDistantObject object as a local proxy for a given object.

Deprecated