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