Re: NSInvocationOperations and background Threads
Re: NSInvocationOperations and background Threads
- Subject: Re: NSInvocationOperations and background Threads
- From: Ken Thomases <email@hidden>
- Date: Sat, 17 Oct 2009 21:20:48 -0500
On Oct 16, 2009, at 8:01 AM, John Love wrote:
In my app, I have a very long for-loop
It appears however, that in my app there is no background Thread
that begins and the reason for that is because my app's window stays
in the background until all NSOperations are complete. Any clues?
I suspect your app's window isn't staying in the background until all
NSOperations are complete, but rather that it's staying in the
background until your long for-loop completes.
You can't run a long for-loop on the main thread and expect event
handling to proceed. (Well, you can, but only if your for-loop is
handling events manually, itself.)
It sounds like you're fundamentally misunderstanding how things like
the main run loop, event processing, operation queues, your for-loop,
etc. interact.
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