# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1686696977 0 # Node ID 965fea56fc8e9e8f060f5a32db66ebaa011f35d1 # Parent 4861e9f49907ae0826ebe60ca50482d0a5fb27f5 Mac: Add MacOS 14 Sonoma support... very few changes. Disable setBezel: code using SDK 14 and targeting 10.15. Increase the suggested modern MacOS minimum version to 10.15. diff -r 4861e9f49907 -r 965fea56fc8e mac/dw.m --- a/mac/dw.m Wed May 17 05:49:25 2023 +0000 +++ b/mac/dw.m Tue Jun 13 22:56:17 2023 +0000 @@ -190,6 +190,11 @@ #define BUILDING_FOR_VENTURA #endif +/* Handle deprecation of constants in 14.0 */ +#if defined(MAC_OS_VERSION_14_0) && ((defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_14_0) || !defined(MAC_OS_X_VERSION_MAX_ALLOWED)) +#define BUILDING_FOR_SONOMA +#endif + #ifdef __clang__ #define _DW_ELSE_AVAILABLE \ _Pragma("clang diagnostic push") \ @@ -5890,7 +5895,13 @@ { DWPercent *percent = [[[DWPercent alloc] init] retain]; [percent setStyle:DWProgressIndicatorStyleBar]; + /* This is deprecated in 14.0 and does nothing in 10.15 and later... + * So don't compile if targeting 10.15 or higher and using SDK 14 or later + */ +#if !defined(MAC_OS_VERSION_14_0) || (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && defined(MAC_OS_X_VERSION_10_15) && \ + MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15) [percent setBezeled:YES]; +#endif [percent setMaxValue:100]; [percent setMinValue:0]; [percent incrementBy:1]; diff -r 4861e9f49907 -r 965fea56fc8e readme.txt --- a/readme.txt Wed May 17 05:49:25 2023 +0000 +++ b/readme.txt Tue Jun 13 22:56:17 2023 +0000 @@ -6,7 +6,7 @@ Build Recommendations: MacOS: - 11-13: configure --with-arch=modern --with-minver=10.14 + 11-13: configure --with-arch=modern --with-minver=10.15 64bit Intel and Apple Silicon (ARM64) with Dark Mode. 10.13-10.15: configure --with-minver=10.8 64bit Intel with Notifications, Dark Mode for 10.14-15. @@ -81,6 +81,7 @@ events from being dropped, only superfluous expose events. This feature is enabled by default on Android. This feature is disabled by default or unavailable on others. +Added support for MacOS 14 Sonoma and iOS 17. Dynamic Windows Documentation is available at: