Initializes an NSDistantObject object as a local proxy for a given object.
Original signature is '- (id)initWithLocal:(id)anObject connection:(NSConnection *)aConnection'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual Id InitWithLocalConnection( Id anObject, NSConnection aConnection )
Public Overridable Function InitWithLocalConnection ( _ anObject As Id, _ aConnection As NSConnection _ ) As Id
public: virtual Id^ InitWithLocalConnection( Id^ anObject, NSConnection^ aConnection )
Parameters
- anObject (Id)
- An object in the receiver’s address space.
- aConnection (NSConnection)
- The connection for the returned proxy.
Return Value
An initialized NSDistantObject object that serves as a local proxy for anObject. If a proxy for anObject 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)