Re: How to get the Mac OS X version?
Re: How to get the Mac OS X version?
- Subject: Re: How to get the Mac OS X version?
- From: Ali Ozer <email@hidden>
- Date: Sat, 8 Sep 2001 23:27:09 -0700
>
> Non the less, one should ask which method is most likely to work in
>
> the future...sw_vers will probably be updated to look in the right
>
> place for the version info, even if the plist is moved, replaced or
>
> something else...Compare using getters and setters in an OO language.
>
>
Well, I wouldn't really expect it to move in the future, and if it's
>
not there, you can safely assume that the version of OS X you are
>
running on is later than the one you had in mind :-)
>
>
I suppose it would be worth having someone confirm it, though. Anybody
>
want to say anything? :-)
Neither the SystemVersion.plist file or sw_vers are part of the system
API, so both could disappear, so any code which looks at them should be
defensive. There does need to be API which returns the info in this file.
Ali