Tree vendored at upstream 0019c5dd; origin + license recorded in raptor/VENDOR.txt. Windows SDL dev packages excluded via .gitignore.
42 lines
921 B
Objective-C
42 lines
921 B
Objective-C
//
|
|
// AppDelegate.m
|
|
// raptorlauncher
|
|
//
|
|
// Created by skynettx on 17.04.23.
|
|
//
|
|
|
|
#import "AppDelegate.h"
|
|
|
|
@interface AppDelegate ()
|
|
|
|
|
|
@end
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
|
// Insert code here to initialize your application
|
|
}
|
|
|
|
|
|
- (void)applicationWillTerminate:(NSNotification *)aNotification {
|
|
// Insert code here to tear down your application
|
|
}
|
|
|
|
|
|
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
|
|
return YES;
|
|
}
|
|
|
|
- (BOOL) applicationShouldHandleReopen:(NSApplication *)app hasVisibleWindows:(BOOL)flag {
|
|
if (!flag) {
|
|
NSStoryboard *storyboard = [NSStoryboard storyboardWithName:@"Main" bundle:nil];
|
|
NSWindowController *controllerWindow = [[NSWindowController alloc] init];
|
|
controllerWindow = [storyboard instantiateInitialController];
|
|
[controllerWindow showWindow:self];
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
@end
|