From 2884c502c1b2234828a51420e2bbb16d37020956 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 19 Nov 2024 12:20:26 -0700 Subject: [PATCH] use a better style mask --- cocoatea/cocoatea.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cocoatea/cocoatea.mm b/cocoatea/cocoatea.mm index ce6ea29953..e89c995f73 100644 --- a/cocoatea/cocoatea.mm +++ b/cocoatea/cocoatea.mm @@ -34,8 +34,13 @@ main (int argc, char* argv[]) NSRect rect = NSMakeRect (100, 100, 1800, 399); NSRect frameRect = NSMakeRect (0, 0, 1800, 399); + NSUInteger style_mask = (NSTitledWindowMask | + NSClosableWindowMask | + NSMiniaturizableWindowMask | + NSResizableWindowMask); + NSWindow* win = [[NSWindow alloc] initWithContentRect:rect - styleMask:NSWindowStyleMaskClosable + styleMask:style_mask backing:NSBackingStoreBuffered defer:NO];