• 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: NSConnections etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnections etc.


  • Subject: Re: NSConnections etc.
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 7 Aug 2002 22:26:44 +0200

On Wednesday, August 7, 2002, at 05:55 , email@hidden wrote:

[Question 1]
When experimenting with distributed objects I have had some difficulty getting the client to connect to the server.

The follwing code connects and returns a valid server :)
my_server = [NSConnection rootProxyForConnectionWithRegisteredName:@
"server" host:nil];

This code does not connect, and returns nil :(
my_server = [NSConnection rootProxyForConnectionWithRegisteredName:@
"server" host:@"localhost"];

This code also returns nil :(
my_server = [NSConnection rootProxyForConnectionWithRegisteredName:@
"server" host:[[NSProcessInfo processInfo]
hostName]];

Clearly I fail to grok the fullness of the "host:" argument.

No, you don't. Cocoa did. The host: argument different from nil just does not work there -- last time it worked was in Yellow Box (Mac OS X Server 1)
, and before that, of course, in all the OpenStep golden age.

This is not an error, it is an intended behaviour (I believe documented in some release notes). Ick.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >NSConnections etc. (From: email@hidden)

  • Prev by Date: Re: Cocoa development using Java - Suggested references
  • Next by Date: Re: iTunes programming
  • Previous by thread: NSConnections etc.
  • Next by thread: Re: on Nscolor
  • Index(es):
    • Date
    • Thread