replace deprecated constants
This commit is contained in:
parent
f739fd13ca
commit
ce9b7bcd81
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user