Whoops, that's a while loop. :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401977
This commit is contained in:
parent
6822a805b4
commit
44f7f92b8a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue