Re: NSNetServiceBrowser and PictureSharing Browser
Re: NSNetServiceBrowser and PictureSharing Browser
- Subject: Re: NSNetServiceBrowser and PictureSharing Browser
- From: Jason Bell <email@hidden>
- Date: Mon, 7 Apr 2003 19:29:55 -0400
what if all NSNetService's are using the same name,are same type and
using same
domain?
From the NSNetService documentation for initWithDomain:type:name:port:
"The name argument identifies your service to the network and must be
unique."
You may want to look at the PictureSharing example for the other half
of the story. This app publishes the service which
PictureSharingBrowser looks for. If you look in the controller class,
the NSNetService delegate method netSerivce:didNotPublish: is
implemented and the example code shows how to see if the error was the
result of a name collision. (This sample app provides a field in the
UI to provide a service name.)
- Jason
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.