proxyWithTarget:connection:
Returns a remote proxy for a given object and connection, creating the proxy if necessary.
Declaration
+ (id) proxyWithTarget:(id) target connection:(NSConnection *) connection;Parameters
- target:
An object in another thread or another application’s address space.
- connection:
The connection to set as the
NSConnectionobject for the returned proxy—it should have been created using theNSConnectionConnectionwithregisteredname:host: class method.
Return Value
A remote proxy for target and connection, creating the proxy if necessary
Discussion
A remote proxy cannot be used until its connection’s peer has a local proxy representing target in the other application.