• 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: Implementing async notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing async notifications


  • Subject: Re: Implementing async notifications
  • From: Sixten Otto <email@hidden>
  • Date: Fri, 10 Dec 2010 16:57:41 -0500

On Fri, Dec 10, 2010 at 2:50 PM, Jon Sigman <email@hidden> wrote:

> I have a Cocoa app that uses a dedicated thread to receive messages, and I
> would
> like that thread to post those messages as notifications so they can be
> processed asynchronously, outside my receiving loop (but not on the main
> thread).
>

Can you explain a little more about your reasons for using notifications?
Are you trying to publish the information about the incoming messages to
multiple specific things in your app?

It kind of reads to me like you're just trying to get the processing of the
messages out of the receiver thread, and into *some* other background
thread, which makes me think that maybe using a dispatch queue would be a
better solution. (Then you can let GCD handle all of the thread management.)


Sixten
_______________________________________________

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

References: 
 >Implementing async notifications (From: Jon Sigman <email@hidden>)

  • Prev by Date: Re: iOS: Monospaced fonts aren't?
  • Next by Date: Re: NSSegmentedControl in select any mode not working with textured appearance?
  • Previous by thread: Implementing async notifications
  • Next by thread: TableView deselection issue
  • Index(es):
    • Date
    • Thread