Just noticed that Gestalt was deprecated in 10.8. This makes me sad.
-
-
@mjtsai@rbrockerhoff it's easier than that, for example, if (NSAppKitVersionNumber < NSAppKitVersionNumber10_7) { } else { } - View other replies
-
@kongtomorrow That doesn’t work when you care about the full 10.x.y version (e.g. to compare against when you know a bug was fixed). -
@mjtsai NSAppKitVersionNumber10_4_7 ! -
@kongtomorrow Yes, now observe how many of them are missing. -
@mjtsai true, I guess it depends where your bug is. there's only a number missing if AppKit didn't rev, which usually means small release.
-
-
-
@mjtsai for all past & current, kern.version returns x.y.z and OS X version will be 10.(x-4).y. Not sure about z though. - View other replies
-
@rbrockerhoff@mjtsai@ccgus Aha: And “sw_vers -productVersion” seems to be a documented, command line means of obtaining this. -
@danielpunkass@rbrockerhoff@mjtsai@ccgus Sure, but shelling out for something like that is sloppy. -
@marczak@rbrockerhoff@mjtsai@ccgus I don’t see a non-sloppy solution here, do you? :) - View other replies
-
@danielpunkass@marczak@mjtsai@ccgus so what API does sw_vers call...? - View other replies
-
@rbrockerhoff@danielpunkass@marczak@ccgus It just reads SystemVersion.plist. -
@mjtsai@rbrockerhoff@danielpunkass@ccgus Right. Which is also easily editable. http://yfrog.com/esj3wiewj
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Gus Mueller
Jonathan Grynspan
Rainer Brockerhoff
Michael Tsai
Ken Ferry
Daniel Jalkut
Edward Marczak