|
@@ -33,14 +33,15 @@ static inline |
|
|
bool runMainLoopOnce() |
|
|
bool runMainLoopOnce() |
|
|
{ |
|
|
{ |
|
|
#if defined(CARLA_OS_MAC) |
|
|
#if defined(CARLA_OS_MAC) |
|
|
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; |
|
|
|
|
|
|
|
|
NSAutoreleasePool* const pool = [[NSAutoreleasePool alloc] init]; |
|
|
|
|
|
NSDate* const date = [NSDate distantPast]; |
|
|
NSEvent* event; |
|
|
NSEvent* event; |
|
|
|
|
|
|
|
|
for (;;) |
|
|
for (;;) |
|
|
{ |
|
|
{ |
|
|
event = [NSApp |
|
|
event = [NSApp |
|
|
nextEventMatchingMask:NSAnyEventMask |
|
|
nextEventMatchingMask:NSAnyEventMask |
|
|
untilDate:[NSDate distantPast] |
|
|
|
|
|
|
|
|
untilDate:date |
|
|
inMode:NSDefaultRunLoopMode |
|
|
inMode:NSDefaultRunLoopMode |
|
|
dequeue:YES]; |
|
|
dequeue:YES]; |
|
|
|
|
|
|
|
|