From 285ef2a9e83891bfb33e62c82c61d2a50138db3c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 15 Aug 2023 22:34:30 +0200 Subject: AppDelegate: Make main window closeable This enables the "Close" menu item in the File menu and allows it to work. --- src/AppDelegate.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/AppDelegate.m b/src/AppDelegate.m index d2b9df3..18bdc74 100644 --- a/src/AppDelegate.m +++ b/src/AppDelegate.m @@ -17,7 +17,11 @@ _window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 400, 400) - styleMask:NSWindowStyleMaskTitled + styleMask: + NSWindowStyleMaskTitled + | NSWindowStyleMaskClosable + | NSWindowStyleMaskMiniaturizable + | NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]; -- cgit v1.2.3