From f9bd8c7dd50271e06d7440c720acae7ac44d2550 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 18 Jan 2019 16:00:21 -0500 Subject: Update gfx-cocoa constants for new macOS --- bin/gfx-cocoa.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/gfx-cocoa.m b/bin/gfx-cocoa.m index 7e7b7643..780efe68 100644 --- a/bin/gfx-cocoa.m +++ b/bin/gfx-cocoa.m @@ -139,10 +139,10 @@ int main(int argc, char *argv[]) { [NSApp setMainMenu: [NSMenu new]]; [[NSApp mainMenu] addItem: menuItem]; - NSUInteger style = NSTitledWindowMask - | NSClosableWindowMask - | NSMiniaturizableWindowMask - | NSResizableWindowMask; + NSUInteger style = NSWindowStyleMaskTitled + | NSWindowStyleMaskClosable + | NSWindowStyleMaskMiniaturizable + | NSWindowStyleMaskResizable; NSWindow *window = [ [NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, 800, 600) -- cgit 1.4.1