• 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
Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)


  • Subject: Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)
  • From: Sean McBride <email@hidden>
  • Date: Thu, 14 Feb 2013 14:26:27 -0500
  • Organization: Rogue Research Inc.

Hi all,

Anyone tried using NSNetService and NSNetServiceBrowser on non-main threads on OS X?

- the 'Thread Safety Summary' document does not mention these classes.
- NSNetServices.h says "NSNetService instances may be scheduled on NSRunLoops to operate in different modes, or in other threads. It is generally not necessary to schedule NSNetServices in other threads."
- CFNetServices.h documents pretty much every API as 'Thread safe', and if the NS version is a wrapper over the CF version... (actually, I can't find a doc saying these are toll free bridged either.)

I've having intermitting issues where my delegate methods are sometimes not being called, and I wonder if it's because I'm using a non-main thread/runloop.

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: iOS Document Interaction Technology
  • Next by Date: Re: UI_APPEARANCE_SELECTOR question
  • Previous by thread: Preventing the dictionary popup from appearing
  • Next by thread: Re: Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)
  • Index(es):
    • Date
    • Thread