1) You have set a delegate for the NSNetServiceBrowser instance you
have created.
2) The delegate you have set indeed implements the delegate method
with the correct method signature.
2) You have done a search for services using the instance created and
have not sent the stop message to the instance.
3) Your code is in a run-loop.
Other than that I can't think of why it might not be working. I am
using it in code and works wonderfully.
Good Luck,
Michael
On Feb 20, 2008, at 10:35 AM, Stephane Sudre wrote:
I would have thought this could be one of the purpose of the
netServiceBrowser:didRemoveService:moreComing: but apparently, it's
not.
This could be worked around by polling but I don't think this is a
good solution (and I don't want to deal with hostnames if possible).