From e8147445040f180093067e42d4c45094988c561a Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 26 Sep 2009 16:48:46 +0000 Subject: [PATCH] Enabling the Sketchbook and Examples menu on Mac OS X with native (screen) menu bar. Processing has these disabled because they often cause problems, but they seem to be working at the moment, so I'm leaving them in. --- app/src/processing/app/Base.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index d1e9541e0..96df38386 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -993,8 +993,9 @@ public class Base { protected void rebuildSketchbookMenu(JMenu menu) { //System.out.println("rebuilding sketchbook menu"); //new Exception().printStackTrace(); - boolean nativeButBroken = Base.isMacOS() ? - Preferences.getBoolean("apple.laf.useScreenMenuBar") : false; + //boolean nativeButBroken = Base.isMacOS() ? + //Preferences.getBoolean("apple.laf.useScreenMenuBar") : false; + boolean nativeButBroken = false; try { if (nativeButBroken) { // osx workaround @@ -1044,8 +1045,9 @@ public class Base { public void rebuildExamplesMenu(JMenu menu) { //System.out.println("rebuilding examples menu"); - boolean nativeButBroken = Base.isMacOS() ? - Preferences.getBoolean("apple.laf.useScreenMenuBar") : false; + //boolean nativeButBroken = Base.isMacOS() ? + //Preferences.getBoolean("apple.laf.useScreenMenuBar") : false; + boolean nativeButBroken = false; try { if (nativeButBroken) { // osx workaround