kritzikratzi / jAppleMenuBar

A tiny JNI library to hide and show the menubar dynamically for MacOSX
5 stars 3 forks source link

JAppleMenuBar corrupted the path in Processing 305 #1

Open knupel opened 9 years ago

knupel commented 9 years ago

Hello, I write this Issue on Processing, but maybe is better to post this one here https://github.com/processing/processing/issues/2996

Hello, I use JAppleMenuBar to hide the Maverick menu bar on my mac, but with P 305 or maybe Java 7.71 the method path is corrupted by JApple. The sketch work find in Processing, and the path is good, but when you export the sketch the path is corrupted. I don't know if this bug is from Processing or Java, so I give the info just in case.

import japplemenubar.*;
JAppleMenuBar instance;

boolean checkThePath ;

void setup() {
  background(0) ;
  size(900,300) ;
  File path = new File(sketchPath("")+"Treasure/");
  if (path.exists()) checkThePath =true ; else checkThePath = false ;

  if(checkThePatch) {
    text("You've found the Treasure :",20,20) ;
    text(path.getAbsolutePath(),20,40) ;
  } else {
    text("You are here :",20,20) ;
    text(path.getAbsolutePath(),20,40) ;
    text("But there is nothing here my friend !",20,60) ;
  }  
}
kritzikratzi commented 9 years ago

Sorry, i made this years ago and it's not maintained. I left it here so other people can take it and use as a basis for their own projects. It was put into processing a while back, but i'm not sure if it's still in use in the 3.0 version.

Please understand that i don't really have the time to look into this specific problem. Just really quickly: On the first glance I don't see how your issue has anything to do with jAppleMenuBar.

knupel commented 9 years ago

Thanks for your answer, and I understand your position. I just use this sketch to show a problem with JApple when your export a processing sketch...I don't where is exactly the problem, because i'm not a hard coder :). So I search a solution to remove this menubar in fullscreen, with P 305 and Java 1.71 on Mavericks, and JApple it was a nice one, but now that's don't work wirth a new version of Processing and Java :(