MonobjcMonobjc Documented Class Library
InitWithTargetConnection Method (remoteObject, aConnection)
NamespacesMonobjc.FoundationNSDistantObjectInitWithTargetConnection(Id, NSConnection)

Initializes a newly allocated NSDistantObject as a remote proxy for remoteObject, which is an id in another thread or another application’s address space.

Original signature is '- (id)initWithTarget:(id)remoteObject connection:(NSConnection *)aConnection'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithTargetConnection(
	Id remoteObject,
	NSConnection aConnection
)
Public Overridable Function InitWithTargetConnection ( _
	remoteObject As Id, _
	aConnection As NSConnection _
) As Id
public:
virtual Id^ InitWithTargetConnection(
	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
An NSDistantObject object initialized as a remote proxy for remoteObject. If a proxy for remoteObject and aConnection already exists, the receiver is released and the existing proxy is retained and returned.
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)