List of utility methods to do Mac OS Version
boolean | isMacOSVersion(int major, int minor, int sub) is Mac OS Version if (!isMac()) return false; Matcher m = MACOSVERSION.matcher(System.getProperty("os.version")); if (!m.matches()) return false; int actualMajor = Integer.parseInt(m.group(1)), actualMinor = Integer.parseInt(m.group(2)), actualSub = Integer.parseInt(m.group(3)); return actualMajor > major ... |
boolean | isMacOSVersionLessThan(int major, int minor, int sub) is Mac OS Version Less Than if (!isMac()) return false; return !isMacOSVersion(major, minor, sub); |