From d44d91d6a4ced55abb744ed24b186981f70d48dd Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 15 Oct 2019 22:31:02 +0300 Subject: [PATCH] - fixed compilation of Cocoa backend with 10.9 SDK src/posix/cocoa/i_video.mm:68:31: error: property 'delegate' not found on object of type 'id' src/posix/cocoa/st_console.mm:464:37: error: property 'delegate' not found on object of type 'id' --- src/posix/cocoa/i_video.mm | 2 +- src/posix/cocoa/st_console.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 4f31417f65..deb65ae691 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -65,7 +65,7 @@ { NSButton* closeButton = [self standardWindowButton:NSWindowCloseButton]; [closeButton setAction:@selector(sendExitEvent:)]; - [closeButton setTarget:NSApp.delegate]; + [closeButton setTarget:[NSApp delegate]]; } @end diff --git a/src/posix/cocoa/st_console.mm b/src/posix/cocoa/st_console.mm index b6d4116f1d..93d0a13204 100644 --- a/src/posix/cocoa/st_console.mm +++ b/src/posix/cocoa/st_console.mm @@ -461,7 +461,7 @@ void FConsoleWindow::NetInit(const char* const message, const int playerCount) [m_netAbortButton setBezelStyle:NSRoundedBezelStyle]; [m_netAbortButton setTitle:@"Cancel"]; [m_netAbortButton setKeyEquivalent:@"\r"]; - [m_netAbortButton setTarget:NSApp.delegate]; + [m_netAbortButton setTarget:[NSApp delegate]]; [m_netAbortButton setAction:@selector(sendExitEvent:)]; // Panel for controls above