• 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: NSConnection question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Authentication: Please critique my solution.
  • Next by Date: Re: Responder problem [flagsChanged cmd keyUp solved]
  • Previous by thread: Re: NSConnection question
  • Next by thread: Drag out
  • Index(es):
    • Date
    • Thread