Re: NSConnections etc.
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.