src/ngfx/porting/appkit/AppDelegate.mm

Source code

#include "porting/appkit/AppDelegate.h"

@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    NSWindow* mainWindow = [[NSApplication sharedApplication] mainWindow];
    [mainWindow makeKeyAndOrderFront:self];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {}
-(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app {
    return YES;
}
@end

Updated on 3 April 2021 at 20:21:51 PDT