Skip to content

Commit eb6a9f7

Browse files
committed
Changed minimum mac osx version to 10.10.
Per @benfry's feedback on #88, moved to 10.10 minimum mac os x version enforced in Info.plist.
1 parent 2799fb3 commit eb6a9f7

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

app/src/processing/app/platform/DefaultPlatform.java

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public void initBase(Base base) {
8080
public void setLookAndFeel() throws Exception {
8181
String laf = Preferences.get("editor.laf");
8282
if (laf == null || laf.length() == 0) { // normal situation
83-
if (shouldUseVaqua()) {
83+
boolean isMac = System.getProperty("os.name", "").startsWith("Mac OS");
84+
if (isMac) {
8485
UIManager.setLookAndFeel("org.violetlib.aqua.AquaLookAndFeel");
8586

8687
Icon collapse = new MacTreeIcon(true);
@@ -282,29 +283,4 @@ public void paintIcon(Component c, Graphics g, int x, int y) {
282283
}
283284
}
284285

285-
/**
286-
* Determine if Vaqua swing modifications for OS X should be used.
287-
*
288-
* @return True if the system is compatible with Vaqua and it is preferred. False otherwise.
289-
*/
290-
private boolean shouldUseVaqua() {
291-
boolean isMac = System.getProperty("os.name", "").startsWith("Mac OS");
292-
if (!isMac) {
293-
return false;
294-
}
295-
296-
String fullMacVersion = System.getProperty("os.version", "NOT_AVAILABLE");
297-
if ("NOT_AVAILABLE".equals(fullMacVersion)) {
298-
return false;
299-
}
300-
301-
String[] components = fullMacVersion.split("\\.");
302-
if (components.length < 2) {
303-
return false;
304-
}
305-
306-
int macTrain = Integer.parseInt(components[1]);
307-
return macTrain >= 10;
308-
}
309-
310286
}

build/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@
705705
copyright="© The Processing Foundation"
706706
shortVersion="${version}"
707707
version="${revision}"
708-
mainClassName="processing.app.BaseSplash">
708+
mainClassName="processing.app.BaseSplash"
709+
minimumSystemVersion="10.10.0">
709710

710711
<!-- The appbundler task needs a couple files (the Info.plist and
711712
anything else outside /jdk) from the full JDK, even though

java/application/Info.plist.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<string>@@sketch@@</string>
3939

4040
<key>LSMinimumSystemVersion</key>
41-
<string>10.8.5</string>
41+
<string>10.10.0</string>
4242

4343
<key>NSHighResolutionCapable</key>
4444
<true/>
@@ -61,7 +61,7 @@
6161
<array>
6262
@@jvm_options_list@@
6363
<string>-Xdock:icon=$APP_ROOT/Contents/Resources/sketch.icns</string>
64-
<string>-Djava.library.path=$APP_ROOT/Contents/Java</string>
64+
<string>-Djava.library.path=$APP_ROOT/Contents/Java</string>
6565
<string>-Dapple.laf.useScreenMenuBar=true</string>
6666
<string>-Dcom.apple.macos.use-file-dialog-packages=true</string>
6767
<string>-Dcom.apple.macos.useScreenMenuBar=true</string>

0 commit comments

Comments
 (0)