Re: NSLStartNeighborhoodLookup in Jaguar
Re: NSLStartNeighborhoodLookup in Jaguar
- Subject: Re: NSLStartNeighborhoodLookup in Jaguar
- From: Marc Krochmal <email@hidden>
- Date: Wed, 9 Jul 2003 22:53:01 -0700
Mark,
On Monday, July 7, 2003, at 03:29 PM, email@hidden wrote:
NSL newbie here. I'm playing with the NSL MiniBrowser sample project
and
getting no joy. Apparently there was a thread on this list last
October which
dealt with how to work around the changes to NSL under Jag that broke
this sample
for simple networks, but it stops just inches short of explaining the
solution. Anyone remember how Quinn said he went about 'hardwiring the
default
neighborhood to "DEFAULT"'? Or is there how a better solution?
The solution is to not assume that a default scope exists. In Mac OS
8.6 through Mac OS 10.1, you were guaranteed that at least one scope
existed called "Local" or "Local Network". Starting in 10.2, if no
zones, domains, or scopes exist, browsing for scopes will return no
results. So all you need to do is to make sure you browse in the
default neighborhood which you can get by calling
NSLMakeNewNeighborhood(NULL, NULL).
Hope that helps, although I would highly recommend that you use
Rendezvous instead of NSL if possible.
-Marc
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.