[Openmcl-devel] Determining OSX version at runtime

Neil Baylis neil.baylis at gmail.com
Thu Aug 26 22:08:49 PDT 2010


Daniel,

There's a feature that's available in 10.6 that's not available in 10.5,
specifically, the ability to assign an NSImage directly to the content
property of a CALayer in Apple's Core Animation technology.

Neil



On Thu, Aug 26, 2010 at 9:35 PM, <dherring at tentpost.com> 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 suspect this is the wrong question to be asking.  Are you really wanting
> to print "10.5" or "10.6"?  Or are you asking because feature X is not
> available on older versions?  Or does feature Y exist but crash
> frequently?  Is feature Y's fix readily detectable?
>
> Feature-specific tests that probe for functionality often perform better
> than hard coded lookup tables of known configurations (that don't handle
> unusual configurations and aren't updated in the future)...
>
> - Daniel
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>



-- 
http://www.pixpopuli.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100826/3bc8f11b/attachment.htm>


More information about the Openmcl-devel mailing list