diff options
author | Teddy Wing | 2023-08-15 22:34:30 +0200 |
---|---|---|
committer | Teddy Wing | 2023-08-15 22:34:30 +0200 |
commit | 285ef2a9e83891bfb33e62c82c61d2a50138db3c (patch) | |
tree | b0011dc7c4e62a2c45172e8f693437ed73fc6311 /src/AppDelegate.m | |
parent | a8ef9980667c6194a604e60794a8619db2eb5d43 (diff) | |
download | Base-Windowed-Application-285ef2a9e83891bfb33e62c82c61d2a50138db3c.tar.bz2 |
AppDelegate: Make main window closeable
This enables the "Close" menu item in the File menu and allows it to
work.
Diffstat (limited to 'src/AppDelegate.m')
-rw-r--r-- | src/AppDelegate.m | 6 |
1 files changed, 5 insertions, 1 deletions
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]; |