• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSNetServiceBrowser and PictureSharing Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Long to C-String
  • Next by Date: Re: Broken Nib
  • Previous by thread: NSNetServiceBrowser and PictureSharing Browser
  • Next by thread: TableView layout questions
  • Index(es):
    • Date
    • Thread