NSNetServiceBrowser - can one instance do domains and services?
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