• 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: NSInvocationOperations and background Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSInvocationOperations and background Threads
      • From: John Love <email@hidden>
References: 
 >NSInvocationOperations and background Threads (From: John Love <email@hidden>)

  • Prev by Date: Re: GC and atomic getters/setters
  • Next by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Previous by thread: Re: NSInvocationOperations and background Threads
  • Next by thread: Re: NSInvocationOperations and background Threads
  • Index(es):
    • Date
    • Thread