diff --git a/platform_mac/mac_4ed.mm b/platform_mac/mac_4ed.mm index 34991d33..0c7a2c5e 100644 --- a/platform_mac/mac_4ed.mm +++ b/platform_mac/mac_4ed.mm @@ -1,5 +1,29 @@ #include +@interface App_Delegate : NSObject +@end + +@implementation App_Delegate +- (void)applicationDidFinishLaunching:(id)sender{ +} + +- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender{ + return YES; +} + +- (void)applicationWillTerminate:(NSNotification *)notification{ +} + +- (NSSize)windowWillResize:(NSWindow*)window toSize:(NSSize)frame_size{ + // frame_size.height = ((f32)frame_size.width / global_aspect_ratio); + return frame_size; +} + +- (void)windowWillClose:(id)sender { + // global_running = false; +} +@end + int main(int arg_count, char **args){ @autoreleasepool{