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