[Openmcl-devel] Determining OSX version at runtime

Gary Palter palter at clozure.com
Thu Aug 26 09:17:44 PDT 2010


Yes, you can use (software-version).  On Mac OS X, the first number is the major release + 4, the second number is the minor release, and the third number is usually zero.

So, 9.8.0 is OS X 10.5.8 and 10.4.0  is OS X 10.6.4.

  - Gary


On Aug 26, 2010, at 12:09 PM, Neil Baylis wrote:

> I get the same on my 32 bit ppc system. My Intel 10.6 system gives version as "10.4.0"
> 
> Is that the OSX version? (I'm running Snow Leopard).
> 
> Neil
> 
> On Thu, Aug 26, 2010 at 9:04 AM, Arthur Cater <arthur.cater at ucd.ie> wrote:
> Funnily enough I was wondering that very thing myself today.
> There's (software-type) and (software-version), which on my Leopard system give "Darwin" and "9.8.0".
> If they give different on Snow Leopard ...
> But maybe there's a more elegant solution.
> 
> Arthur
> 
> 
> On Aug 26, 2010, at 4:51 PM, 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?
> 
> Neil
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
> 
> 
> 
> -- 
> http://www.pixpopuli.com
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100826/0865a20b/attachment.htm>


More information about the Openmcl-devel mailing list