1) You have set a delegate for the NSNetServiceBrowser instance you
have created.
Yes.
2) The delegate you have set indeed implements the delegate method
with the correct method signature.
AFAIK, yes.
2) You have done a search for services using the instance created and
have not sent the stop message to the instance.
Yes.
3) Your code is in a run-loop.
That's a good question. I don't do anything to add the
NSNetServiceBrowser to a run-loop. I assume from the documentation that
it's automatically added to the current run-loop and that you can
remove it or move it to another run-loop if needed.
The test I'm doing is the following one:
1. Search for _workstation._tcp.
2. Wait for the results
3. Connect to a remote Mac using ARD.
4. Change the IP of the Mac. (Quit ARD).
5. Wait for anything to happen in the sample code.
@end
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden