Mercurial > dwindows
diff mac/dw.m @ 1934:487fd711bf3f
Mac: Fix deprecation warning in the 10.13 SDK.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 18 Oct 2017 17:26:39 +0000 |
parents | 0448507827e6 |
children | 994e2360dbb2 |
line wrap: on
line diff
--- a/mac/dw.m Mon Sep 11 05:56:04 2017 +0000 +++ b/mac/dw.m Wed Oct 18 17:26:39 2017 +0000 @@ -3683,7 +3683,11 @@ /* Display the dialog. If the OK button was pressed, * process the files. */ +#if defined(MAC_OS_X_VERSION_10_9) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) + if([saveDlg runModal] == NSModalResponseOK) +#else if([saveDlg runModal] == NSFileHandlingPanelOKButton) +#endif { /* Get an array containing the full filenames of all * files and directories selected.