• 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
How to connect to a Distant Object on another machine ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to connect to a Distant Object on another machine ?
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Getting notified when current document changes
  • Next by Date: Setting Document Icon
  • Previous by thread: Re: Getting notified when current document changes
  • Next by thread: Re: How to connect to a Distant Object on another machine ?
  • Index(es):
    • Date
    • Thread