use a better style mask

This commit is contained in:
Paul Davis 2024-11-19 12:20:26 -07:00
parent bfffe101de
commit 2884c502c1

View File

@ -34,8 +34,13 @@ main (int argc, char* argv[])
NSRect rect = NSMakeRect (100, 100, 1800, 399); NSRect rect = NSMakeRect (100, 100, 1800, 399);
NSRect frameRect = NSMakeRect (0, 0, 1800, 399); NSRect frameRect = NSMakeRect (0, 0, 1800, 399);
NSUInteger style_mask = (NSTitledWindowMask |
NSClosableWindowMask |
NSMiniaturizableWindowMask |
NSResizableWindowMask);
NSWindow* win = [[NSWindow alloc] initWithContentRect:rect NSWindow* win = [[NSWindow alloc] initWithContentRect:rect
styleMask:NSWindowStyleMaskClosable styleMask:style_mask
backing:NSBackingStoreBuffered backing:NSBackingStoreBuffered
defer:NO]; defer:NO];