replace deprecated constants

This commit is contained in:
Stefan Csomor 2020-06-29 22:42:09 +02:00
parent f739fd13ca
commit ce9b7bcd81
2 changed files with 5 additions and 5 deletions

View File

@ -215,7 +215,7 @@ int wxGUIEventLoop::DoDispatchTimeout(unsigned long timeout)
switch (response) switch (response)
{ {
case NSRunContinuesResponse: case NSModalResponseContinue:
{ {
[[NSRunLoop currentRunLoop] [[NSRunLoop currentRunLoop]
runMode:NSDefaultRunLoopMode runMode:NSDefaultRunLoopMode
@ -229,8 +229,8 @@ int wxGUIEventLoop::DoDispatchTimeout(unsigned long timeout)
return -1; return -1;
} }
case NSRunStoppedResponse: case NSModalResponseStop:
case NSRunAbortedResponse: case NSModalResponseAbort:
return -1; return -1;
default: default:
// nested native loops may return other codes here, just ignore them // nested native loops may return other codes here, just ignore them

View File

@ -74,7 +74,7 @@ int wxMacPrintDialog::ShowModal()
OSXBeginModalDialog(); OSXBeginModalDialog();
if ( (NSInteger)[panel runModalWithPrintInfo:printInfo] == NSOKButton ) if ( (NSInteger)[panel runModalWithPrintInfo:printInfo] == NSModalResponseOK )
{ {
result = wxID_OK; result = wxID_OK;
m_printDialogData.GetPrintData().ConvertFromNative(); m_printDialogData.GetPrintData().ConvertFromNative();
@ -100,7 +100,7 @@ int wxMacPageSetupDialog::ShowModal()
OSXBeginModalDialog(); OSXBeginModalDialog();
if ( [pageLayout runModalWithPrintInfo:printInfo] == NSOKButton ) if ( [pageLayout runModalWithPrintInfo:printInfo] == NSModalResponseOK )
{ {
result = wxID_OK; result = wxID_OK;
m_pageSetupData.GetPrintData().ConvertFromNative(); m_pageSetupData.GetPrintData().ConvertFromNative();