Skip navigation.
 
mlRe: Tight loop processing
FROM : Michael Vannorsdel
DATE : Thu Apr 10 20:25:48 2008

There's NSRunLoop's runUntilDate: or CFRunLoopRunInMode if you'd like 
to avoid multithreading.  Though threading on Mac OS X is pretty 
lightweight and has plenty of ways to do inter-thread communication.


On Apr 10, 2008, at 12:00 PM, Don Arnel wrote:

> Hey all...
>
> This is my first time posting to this list. I've been a Windows 
> developer for many many years and have just recently started to play 
> around with Macs. I feel like a beginner all over again! Anyway....
>
> I've got a Cocoa application which runs a simulation loop 1000s of 
> times. Of course, this prevents any user interaction with the rest 
> of the program while the simulation is running. When I was 
> programming for Windows there was a call in Visual Basic 
> (app.DoEvents()) which would process any pending events. You could 
> put DoEvents() inside long loops to prevent blocking user input.  Is 
> there a similar way to handle this in Cocoa?

Related mailsAuthorDate
mlTight loop processing Don Arnel Apr 10, 20:00
mlRe: Tight loop processing Stéphane Apr 10, 20:06
mlRe: Tight loop processing Jamie Phelps Apr 10, 20:06
mlRe: Tight loop processing Don Arnel Apr 10, 20:14
mlRe: Tight loop processing Shawn Erickson Apr 10, 20:23
mlRe: Tight loop processing Michael Vannorsdel Apr 10, 20:25
mlRe: Tight loop processing Brian Stern Apr 10, 21:49
mlRe: Tight loop processing Wade Tregaskis Apr 10, 23:13
mlRe: Tight loop processing Mike R. Manzano Apr 11, 00:16
mlRe: Tight loop processing Ken Thomases Apr 11, 00:20
mlRe: Tight loop processing Don Arnel Apr 11, 13:35
mlRe: Tight loop processing Bill Garrison Apr 11, 14:08
mlRe: Tight loop processing Don Arnel Apr 12, 14:54