Whoops, that's a while loop. :)
authorSam Lantinga <slouken@libsdl.org>
Sun, 23 Jul 2006 09:16:14 +0000
changeset 1932 dc864bcabcc4
parent 1931 103c6fec2a60
child 1933 7ee5297340f7
Whoops, that's a while loop. :)
src/video/cocoa/SDL_cocoaevents.m
--- a/src/video/cocoa/SDL_cocoaevents.m	Sun Jul 23 09:11:10 2006 +0000
+++ b/src/video/cocoa/SDL_cocoaevents.m	Sun Jul 23 09:16:14 2006 +0000
@@ -157,7 +157,7 @@
     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;