How to connect to a Distant Object on another machine ?
How to connect to a Distant Object on another machine ?
- Subject: How to connect to a Distant Object on another machine ?
- From: Charles Françoise <email@hidden>
- Date: Fri, 15 Oct 2004 03:27:45 +0300
I can't seem to connect to a distant object when I specify it with the host name.
Example :
NSDistantObject *newClient = [NSConnection rootProxyForConnectionWithRegisteredName:@"simpleClient" host:host];
does not seem to work, I don't ever get a connection. host is a NSString here. containing things like "any.domain.com" or IP adresses.
However, using
NSDistantObject *newClient = [NSConnection rootProxyForConnectionWithRegisteredName:@"simpleClient" host:nil];
works very well. The app fully works on one computer if hosts are specified as nil, but does not work on the same computer if I use the computer's name as host.
I hope someone understands what I'm talking about.
Thanks
Charles _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden