Re: NSConnection question
Re: NSConnection question
- Subject: Re: NSConnection question
- From: Greg Titus <email@hidden>
- Date: Wed, 8 Oct 2003 09:22:46 -0700
On Wednesday, October 8, 2003, at 06:59 AM, Wade Tregaskis wrote:
Can someone explain to me why this doesn4t work:
myServerAddress = @"localhost";
myServer = [NSConnection
rootProxyForConnectionWithRegisteredName:@"Server"
host:myServerAddress];
I would be grateful to all help!
The NSConnection convenience methods -
rootProxyForConnectionWithRegisteredName: being one of them - use mach
ports solely, not sockets. You could consider this a bug, since they
clearly allow you to provide a host name. Whether this is a bug or a
missing feature I can't recall, although it was discussed quite
recently on some mailing list (perhaps this one, or mac-network-prog,
or perhaps the Omni lists).
It's because in NeXTStep/OpenStep you could have mach port connections
between machines, so this API made sense. In Mac OS X they removed the
intermachine mach port ability (which had its problems), but left the
API the same.
Hope this helps,
- Greg
_______________________________________________
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.