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