• 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
NSNetServiceBrowser - can one instance do domains and services?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNetServiceBrowser - can one instance do domains and services?


  • Subject: NSNetServiceBrowser - can one instance do domains and services?
  • From: Roland King <email@hidden>
  • Date: Sun, 13 Dec 2009 16:20:29 +0800

I have one instance of an NSNetServicesBrowser in my application. I set it to go find browsedomains (only) and it happily goes and finds both of them. I thought that I could use the same instance to find services in the domains it finds, but if I add [ browser searchForServicesOfType:<type> inDomain:<domain> ] in the callback for the netServiceBrowser finding a domain then firstly it stops finding domains, and secondly it doesn't find any services.

Is an NSNetServiceBrowser limited to searching for domains *only* or for services *only* and cannot be configured to do both? I can make two, it's fine, but if there is that limitation I couldn't find it in the documentation. _______________________________________________

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: Crash when 'open POSIX file /..' from AppleScript
  • Next by Date: add documentation?
  • Previous by thread: Re: Crash when 'open POSIX file /..' from AppleScript
  • Next by thread: add documentation?
  • Index(es):
    • Date
    • Thread