MCPcopy
hub / github.com/arduino/Arduino / isMacOS

Method isMacOS

arduino-core/src/processing/app/helpers/OSUtils.java:24–27  ·  view source on GitHub ↗

returns true if Processing is running on a Mac OS X machine.

()

Source from the content-addressed store, hash-verified

22 * returns true if Processing is running on a Mac OS X machine.
23 */
24 static public boolean isMacOS() {
25 //return PApplet.platform == PConstants.MACOSX;
26 return System.getProperty("os.name").contains("Mac");
27 }
28
29 static public boolean hasMacOSStyleMenus() {
30 return OSUtils.isMacOS() && "true".equals(System.getProperty("apple.laf.useScreenMenuBar"));

Callers 15

initPlatformMethod · 0.95
hasMacOSStyleMenusMethod · 0.95
loadMethod · 0.95
findBuildPathsMethod · 0.95
FindReplaceMethod · 0.95
getDefaultFontMethod · 0.95
buildEditMenuMethod · 0.95
getMinimumSizeMethod · 0.95
getMaximumSizeMethod · 0.95
calcModifiedMethod · 0.95
EditorToolbarMethod · 0.95
EditorLineStatusMethod · 0.95

Calls

no outgoing calls

Tested by 1

findBuildPathsMethod · 0.76