- 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'
This commit is contained in:
alexey.lysiuk 2019-10-15 22:31:02 +03:00
parent d0a256b51c
commit d44d91d6a4
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@
{
NSButton* closeButton = [self standardWindowButton:NSWindowCloseButton];
[closeButton setAction:@selector(sendExitEvent:)];
[closeButton setTarget:NSApp.delegate];
[closeButton setTarget:[NSApp delegate]];
}
@end

View file

@ -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