• 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: "Stephen J. Butler" <email@hidden>
  • Date: Thu, 26 May 2011 13:43:13 -0500

On Thu, May 26, 2011 at 1:39 PM, Ken Thomases <email@hidden> wrote:
> 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.

Huh... I don't know why I thought notifications were process wide. Too
little caffeine today.
_______________________________________________

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: 
 >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>)
 >Re: How to implement "while there are objects in the array - run runloop" idea? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Why do things wind up under the nav bar after rotation?
  • 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