File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments