• 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: process events in tight loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: process events in tight loop?


  • Subject: Re: process events in tight loop?
  • From: Dave Camp <email@hidden>
  • Date: Wed, 13 Jul 2005 16:09:12 -0700

On Jul 13, 2005, at 2:35 PM, Chase wrote:

What's the Cocoa equivalent of REALbasic's App.DoEvents() for allowing queued events to be processed while busy in a tight loop?

- Chase

The proper way to handle that would be to not have a long running tight loop in the main thread. Perform that processing in a separate thread and maybe use performSelectorOnMainThread:withObject:waitUntilDone to have the secondary thread update your progress UI.


Dave


--- You are in a maze of testy little Java VMs, all subtly different.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [RESOLVED] process events in tight loop?
      • From: Chase <email@hidden>
References: 
 >process events in tight loop? (From: Chase <email@hidden>)

  • Prev by Date: Core Data: transient attributes require bogus type to quiet compiler?
  • Next by Date: Re: Core Data: transient attributes require bogus type to quiet compiler?
  • Previous by thread: process events in tight loop?
  • Next by thread: Re: [RESOLVED] process events in tight loop?
  • Index(es):
    • Date
    • Thread