Re: process events in tight loop?
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