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

View File

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