From 06a17171744e5ac1032ed3325ccebec43e2bce0d Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 30 May 2018 09:00:34 +0300 Subject: [PATCH] Dedeprecate https://github.com/AaronVanGeffen/OpenRCT2/commit/46acaa8a5a447f9f3a9159f61db413abee628dec --- wsi/cocoa/cocoa.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wsi/cocoa/cocoa.m b/wsi/cocoa/cocoa.m index cc3fb09..343c1cf 100644 --- a/wsi/cocoa/cocoa.m +++ b/wsi/cocoa/cocoa.m @@ -765,14 +765,12 @@ NSCursor *GetCursor (int idx) return YES; } -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated" - (void)openDocument:(id)sender { NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel beginSheetModalForWindow:window completionHandler:^(NSInteger result){ - if (result == NSFileHandlingPanelOKButton) { + if (result == NSModalResponseOK) { NSString *filename = [[[openPanel URLs] objectAtIndex:0] path]; if (filename != nil) { [self application:NSApp openFile:filename]; @@ -780,7 +778,6 @@ NSCursor *GetCursor (int idx) } }]; } -#pragma GCC diagnostic pop - (void)reportIssue:(id)sender { -- 2.11.4.GIT