[Openmcl-devel] Determining OSX version at runtime
Raffael Cavallaro
raffaelcavallaro at mac.com
Thu Aug 26 09:12:36 PDT 2010
On Aug 26, 2010, at 11:51 AM, Neil Baylis wrote:
> What's the correct way to determine the OSX version at runtime?
>
> Specifically, how do I make the behavior change if it's 10.6 or later?
I use this hack to distinguish between 10.5 and 10.6, since mainQueue is only available 10.6 or later according to Apple's docs:
? (defun snow-leopard-or-later-p ()
(#/respondsToSelector: ns:ns-operation-queue (objc::@selector "mainQueue")))
SNOW-LEOPARD-OR-LATER-P
? (snow-leopard-or-later-p)
T
?
warmest regards,
Ralph
Raffael Cavallaro
raffaelcavallaro at me.com
More information about the Openmcl-devel
mailing list