Skip to content

Commit 0ed2e02

Browse files
committed
improve comments
1 parent 03a4c03 commit 0ed2e02

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/src/processing/core/ThinkDifferent.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,15 @@ static private Desktop getDesktop() {
124124

125125
static native public void showMenuBar();
126126

127-
// Used by Python (Jython) Mode to bring windows to the front
127+
// deprecated
128+
// https://developer.apple.com/documentation/appkit/nsapplication/activate(ignoringotherapps:)
128129
static native public void activateIgnoringOtherApps();
129130

131+
// added in macOS 14 (Sonoma)
132+
// https://developer.apple.com/documentation/appkit/nsapplication/activate()
130133
static native public void activate();
131134

132-
// Used by py5 to bring windows to the front
135+
// Used by py5 to bring Sketch to the front
133136
static public void activateSketchWindow() {
134137
try {
135138
String osVersion = System.getProperty("os.version");
@@ -141,7 +144,7 @@ static public void activateSketchWindow() {
141144
activateIgnoringOtherApps();
142145
}
143146
} catch (Exception e) {
144-
// ignore
147+
// do nothing
145148
}
146149
}
147150

0 commit comments

Comments
 (0)