Re: Connection hangs - never comes back... I don't think this is right
Re: Connection hangs - never comes back... I don't think this is right
- Subject: Re: Connection hangs - never comes back... I don't think this is right
- From: j o a r <email@hidden>
- Date: Tue, 21 Aug 2001 07:48:37 +0200
On Tuesday, August 21, 2001, at 01:38 , Lloyd Sargent wrote:
connection = [[NSConnection
rootProxyForConnectionWithRegisteredName:@"WeirdReviewAuthorizedTool"
host: nil] retain];
I get the impression from your variable name "connection" that you
expect the "rootProxyForConnection..." method to return a NSConnection
object, while it's really a "shortcut" method to go beyond that and get
a reference to the proxy for the remote root object directly. If this is
the case, have a look at the differences between these two methods (from
the NSConnection docs) to better illustrate it's proper use:
===========================================================
id theProxy;
theProxy = [[NSConnection
rootProxyForConnectionWithRegisteredName:@"server"
host:@"*"] retain];
===========================================================
NSConnection *theConnection;
id theProxy;
theConnection = [NSConnection connectionWithRegisteredName:@"server"
host:@"*"];
theProxy = [[theConnection rootProxy] retain];
===========================================================
Regards,
j o a r