From 0ed2e028e59f8d646779b17bdd68f89b904945b1 Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 11 Jan 2025 20:47:22 -0500 Subject: [PATCH] improve comments --- core/src/processing/core/ThinkDifferent.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/processing/core/ThinkDifferent.java b/core/src/processing/core/ThinkDifferent.java index 411e093e8..2bc8935d0 100644 --- a/core/src/processing/core/ThinkDifferent.java +++ b/core/src/processing/core/ThinkDifferent.java @@ -124,12 +124,15 @@ public class ThinkDifferent { static native public void showMenuBar(); - // Used by Python (Jython) Mode to bring windows to the front + // deprecated + // https://developer.apple.com/documentation/appkit/nsapplication/activate(ignoringotherapps:) static native public void activateIgnoringOtherApps(); + // added in macOS 14 (Sonoma) + // https://developer.apple.com/documentation/appkit/nsapplication/activate() static native public void activate(); - // Used by py5 to bring windows to the front + // Used by py5 to bring Sketch to the front static public void activateSketchWindow() { try { String osVersion = System.getProperty("os.version"); @@ -141,7 +144,7 @@ public class ThinkDifferent { activateIgnoringOtherApps(); } } catch (Exception e) { - // ignore + // do nothing } }