Re: How to implement "while there are objects in the array - run runloop" idea?
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