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