# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1508347599 0 # Node ID 487fd711bf3f7073b5bb2d7523c5179c9d99c12b # Parent 758f49e54566828c85e34310a21b4124891462ce Mac: Fix deprecation warning in the 10.13 SDK. diff -r 758f49e54566 -r 487fd711bf3f mac/Info.plist --- 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 @@ ???? CFBundleVersion 1 + LSApplicationCategoryType + public.app-category.developer-tools LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSPrincipalClass diff -r 758f49e54566 -r 487fd711bf3f mac/dw.m --- 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.