MonobjcMonobjc Documented Class Library
ProxyWithTargetConnection Method (remoteObject, aConnection)
NamespacesMonobjc.FoundationNSDistantObjectProxyWithTargetConnection(Id, NSConnection)

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

Original signature is '+ (NSDistantObject *)proxyWithTarget:(id)remoteObject connection:(NSConnection *)aConnection'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDistantObject ProxyWithTargetConnection(
	Id remoteObject,
	NSConnection aConnection
)
Public Shared Function ProxyWithTargetConnection ( _
	remoteObject As Id, _
	aConnection As NSConnection _
) As NSDistantObject
public:
static NSDistantObject^ ProxyWithTargetConnection(
	Id^ remoteObject, 
	NSConnection^ aConnection
)
Parameters
remoteObject (Id)
An object in another thread or another application’s address space.
aConnection (NSConnection)
The connection to set as the NSConnection object for the returned proxy—it should have been created using the NSConnectionconnectionWithRegisteredName:host: class method.
Return Value
A remote proxy for remoteObject and aConnection, creating the proxy if necessary
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)