• 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: How to implement "while there are objects in the array - run runloop" idea?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement "while there are objects in the array - run runloop" idea?


  • Subject: Re: How to implement "while there are objects in the array - run runloop" idea?
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 26 May 2011 13:39:41 -0500

On May 26, 2011, at 1:35 PM, Stephen J. Butler wrote:

> - Use NSNotifications to notify that a new object is waiting to be
> processed. If you go this route, you could actually have multiple
> processing threads all listening for the notification.

Notifications are delivered on the same thread as they are posted.  So, this doesn't help get work from one thread to another (or several others).  You can, upon receiving a notification, initiate some work on another thread, but that gets you back to square one as far as this discussion is concerned.

Regards,
Ken

_______________________________________________

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: How to implement "while there are objects in the array - run runloop" idea?
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >How to implement "while there are objects in the array - run runloop" idea? (From: Nick <email@hidden>)
 >Re: How to implement "while there are objects in the array - run runloop" idea? (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: How to implement "while there are objects in the array - run runloop" idea?
  • Next by Date: Re: Drawing an arc fill inside an image
  • Previous by thread: Re: How to implement "while there are objects in the array - run runloop" idea?
  • Next by thread: Re: How to implement "while there are objects in the array - run runloop" idea?
  • Index(es):
    • Date
    • Thread