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 14:22:41 -0500
On Thu, May 26, 2011 at 1:35 PM, Stephen J. Butler
<email@hidden> wrote:
> You might want to abandon that approach and not add objects from the
> background thread directly to the shared array. Instead, you could
> "signal" the main thread that a new object is ready to be processed.
> Some common methods:
- Just thought of this: blocks and dispatch queues. There's a special
one just for the main thread. I suppose this is the most modern way to
do it!
_______________________________________________
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