diff --git a/src/osx/cocoa/evtloop.mm b/src/osx/cocoa/evtloop.mm index f0a0425e07..fe45a40cf2 100644 --- a/src/osx/cocoa/evtloop.mm +++ b/src/osx/cocoa/evtloop.mm @@ -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 diff --git a/src/osx/cocoa/printdlg.mm b/src/osx/cocoa/printdlg.mm index f873c4ce27..76e58d3a25 100644 --- a/src/osx/cocoa/printdlg.mm +++ b/src/osx/cocoa/printdlg.mm @@ -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();