• 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
Bonjour, domains and MobileMe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bonjour, domains and MobileMe


  • Subject: Bonjour, domains and MobileMe
  • From: Miguel Arroz <email@hidden>
  • Date: Sun, 22 Aug 2010 17:14:18 +0100

Hi,

  I have an iPhone app that receives real time data from a Mac application, and uses it do to whatever it does. Currently, the user has to set the iPhone IP on the Mac to make it work.

  I'm now adding Bonjour to the whole thing, but I'm having an interesting problem, and I would like your input on the best way to handle this.

  So, the idea is having the Mac publishing a service and the iPhone being able to browse for services and connect to the one the user chooses. So, the Mac is announcing the service, and that went fine. But, on the iPhone, my NSNetServiceBrowser sees the service twice. Both services have the same name, but one of them has the local. domain, and the other has arroz.members.mac.com. (because this Mac is using the Back To My Mac stuff, and I'm running on the simulator).

  My first idea is to browse for services only on the local. domain. Is this the way to go? I have no experience with more complex Bonjour setups, with multiple domains, so I'm not sure if this is a smart thing to do. On the other hand, the usage of this app only makes sense if the user has his iPhone right next to the Mac and is using both at the same time, so something called "local" seems to be appropriate. :)

  Regards,

Miguel Arroz

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: [iphone] Subclass MKAnnotationView - subtitle missing
  • Next by Date: Re: Making an NSMethodInvocation from the current method
  • Previous by thread: [iphone] Subclass MKAnnotationView - subtitle missing
  • Next by thread: NSArrayController + KVO + Core Data Question
  • Index(es):
    • Date
    • Thread