diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-09 11:16:36 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-09 11:16:36 +0200 |
| commit | bb7e1635adb15d685a94e96b015d4bfd09cf2f05 (patch) | |
| tree | bf50398b7e8a3068e8c75ae6615676d3ca46b840 /src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm | |
| parent | d1436f4f63c0c788d25065a4ce108cedb82ae866 (diff) | |
macOS: remove a bunch of deprecation warnings
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm index c144ab243..3163f01b3 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Printer_Driver.mm @@ -126,7 +126,10 @@ int Fl_Cocoa_Printer_Driver::begin_job (int pagecount, int *frompage, int *topag [main makeKeyAndOrderFront:nil]; } else retval = [panel runModalWithPrintInfo:info]; //from 10.5 - if (retval != NSOKButton) return 1; +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9 + const NSInteger NSModalResponseOK = NSOKButton; +#endif + if (retval != NSModalResponseOK) return 1; printSession = (PMPrintSession)[info PMPrintSession];//from 10.5 pageFormat = (PMPageFormat)[info PMPageFormat];//from 10.5 printSettings = (PMPrintSettings)[info PMPrintSettings];//from 10.5 |
