(OSX) Implement applicationDidBecomeActive and applicationWillResignActive

This commit is contained in:
Twinaphex 2014-07-14 03:52:35 +02:00
parent 4894e2134f
commit ec4de627dd

View File

@ -186,10 +186,18 @@ static char** waiting_argv;
waiting_argc = 0;
_wantReload = false;
}
- (void)applicationDidBecomeActive:(NSNotification *)notification
{
apple_start_iteration();
}
- (void)applicationWillResignActive:(NSNotification *)notification
{
apple_stop_iteration();
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
return YES;