improve comments

This commit is contained in:
Jim
2025-01-11 20:47:22 -05:00
parent 03a4c03e32
commit 0ed2e028e5
+6 -3
View File
@@ -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
}
}