We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b336a commit 730b15dCopy full SHA for 730b15d
1 file changed
common/CocoaTools.mm
@@ -298,6 +298,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
298
void CocoaTools::RunCocoaEventLoop(bool forever)
299
{
300
NSDate* end = forever ? [NSDate distantFuture] : [NSDate distantPast];
301
+ [NSApplication sharedApplication]; // Ensure NSApp is initialized
302
while (true)
303
{ @autoreleasepool {
304
NSEvent* ev = [NSApp nextEventMatchingMask:NSEventMaskAny
0 commit comments