diff --git a/core/different/different.m b/core/different/different.m index 80124b3cb..6cb7f056f 100644 --- a/core/different/different.m +++ b/core/different/different.m @@ -1,3 +1,4 @@ +#import #import #import @@ -16,3 +17,17 @@ JNIEXPORT void JNICALL Java_processing_core_ThinkDifferent_showMenuBar { [NSApp setPresentationOptions:0]; } + + +JNIEXPORT void JNICALL Java_processing_core_ThinkDifferent_showMenuBar +(JNIEnv *env, jclass clazz, jboolean visible, jboolean kioskMode) +{ + [NSApp setPresentationOptions:0]; +} + + +JNIEXPORT void JNICALL Java_processing_core_ThinkDifferent_activateIgnoringOtherApps +(JNIEnv *env, jclass klass) +{ + [NSApp activateIgnoringOtherApps:true]; +} diff --git a/core/src/processing/core/ThinkDifferent.java b/core/src/processing/core/ThinkDifferent.java index 862da283f..1a5c85e50 100644 --- a/core/src/processing/core/ThinkDifferent.java +++ b/core/src/processing/core/ThinkDifferent.java @@ -151,4 +151,11 @@ public class ThinkDifferent { e.printStackTrace(); } } + + + // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + // Used by Python (Jython) Mode to bring windows to the front + + static native public void activateIgnoringOtherApps(); } diff --git a/core/todo.txt b/core/todo.txt index 570ef6076..1a9dd5153 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,4 +1,4 @@ -1292 (4.1.4 or 4.2) +1292 (4.2) _ args passed to main() aren't working diff --git a/todo.txt b/todo.txt index 3874f9c53..b5be613e6 100755 --- a/todo.txt +++ b/todo.txt @@ -1,10 +1,13 @@ -1292 (4.1.4 or 4.2) +1292 (4.2) X application exported to the wrong folder X https://github.com/processing/processing4/issues/601 +_ more /tmp folder problems with Linux (may be the subdirectories?) +_ https://github.com/processing/processing4/issues/666 -python +python (api changes mean this is 4.2) X move ExportDialog to processing.app.ui (out of Java Mode) so it can be used by Jython X move isXcodeInstalled() methods from JavaBuild into MacPlatform +X add activateIgnoringOtherApps() to ThinkDifferent manager