changeset 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 758f49e54566
children 994e2360dbb2
files mac/Info.plist mac/dw.m
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mac/Info.plist	Mon Sep 11 05:56:04 2017 +0000
+++ b/mac/Info.plist	Wed Oct 18 17:26:39 2017 +0000
@@ -22,6 +22,8 @@
 	<string>????</string>
 	<key>CFBundleVersion</key>
 	<string>1</string>
+	<key>LSApplicationCategoryType</key>
+	<string>public.app-category.developer-tools</string>
 	<key>LSMinimumSystemVersion</key>
 	<string>${MACOSX_DEPLOYMENT_TARGET}</string>
 	<key>NSPrincipalClass</key>
--- 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.