• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the Mac OS X version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to get the Mac OS X version? (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: Mac OS X 10.1 File Name Extension Guidelines (John Geleynse)
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines (solution?)
  • Previous by thread: Re: How to get the Mac OS X version?
  • Next by thread: [ANN] Cocoa SIG forming in Houston
  • Index(es):
    • Date
    • Thread