mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Fixed: Catch exception when calling [NSApp sendEvent:event] and log it
This commit is contained in:
parent
70141044c7
commit
7c4eb1b66b
1 changed files with 9 additions and 2 deletions
|
@ -442,9 +442,16 @@ void CCocoaEventEmitter::submitEvents(CEventServer& server, bool /* allWins */)
|
|||
processMessage(event, &server);
|
||||
}
|
||||
|
||||
@try
|
||||
{
|
||||
// forward the event to the cocoa application
|
||||
[NSApp sendEvent:event];
|
||||
}
|
||||
@catch(NSException *e)
|
||||
{
|
||||
nlwarning("Exception when sending event: %s", [[e reason] UTF8String]);
|
||||
}
|
||||
}
|
||||
|
||||
_server = &server;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue