• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Connection hangs - never comes back... I don't think this is right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Connection hangs - never comes back... I don't think this is right (From: Lloyd Sargent <email@hidden>)

  • Prev by Date: Just want to introduce myself.
  • Next by Date: Re: NSTextView undo/redo question
  • Previous by thread: Connection hangs - never comes back... I don't think this is right
  • Next by thread: Class Methods & Class Objects?
  • Index(es):
    • Date
    • Thread