• 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: Threading, save panels, and segfaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threading, save panels, and segfaults


  • Subject: Re: Threading, save panels, and segfaults
  • From: "R. Tony Goold" <email@hidden>
  • Date: Sat, 10 Nov 2001 20:28:17 -0500

I haven't actually used an NSDistributedNotificationCenter for inter-thread communication, but it wouldn't imagine it presenting any more difficulties than inter-task communication, would it?

Or are tasks prevented from receiving notifications they post? The scenario I imagine is a thread leaving a notification that only the GUI thread observers, and using that for inter-thread communication. Is this not possible, or simply not supported?


Cheers,
Tony


On Saturday, November 10, 2001, at 07:47 , Andreas Monitzer wrote:

On Sunday, November 11, 2001, at 01:28 , R. Tony Goold wrote:

Notifications aren't thread safe, either :)

I can't imagine any other purpose for NSDistributedNotificationCenter.

What about inter-task communication? That's what it was designed for and it's the only supported usage.

I'm using it quite often for event-type communication (e.g. "connection established").

andy
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Threading, save panels, and segfaults
      • From: Charles Srstka <email@hidden>
    • Re: Threading, save panels, and segfaults
      • From: Finlay Dobbie <email@hidden>
    • Re: Threading, save panels, and segfaults
      • From: Andreas Monitzer <email@hidden>
References: 
 >Re: Threading, save panels, and segfaults (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Controlling selection in NSTextFields
  • Next by Date: Re: Controlling selection in NSTextFields
  • Previous by thread: Re: Threading, save panels, and segfaults
  • Next by thread: Re: Threading, save panels, and segfaults
  • Index(es):
    • Date
    • Thread