Whoops, that's a while loop. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401977
This commit is contained in:
Sam Lantinga 2006-07-23 09:16:14 +00:00
parent 6822a805b4
commit 44f7f92b8a

View file

@ -157,7 +157,7 @@ Cocoa_PumpEvents(_THIS)
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
for ( ; [NSApp isRunning]; ) {
while ([NSApp isRunning]) {
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
if ( event == nil ) {
break;