[CocoaApp isThisTiger]
Finlay Dobbie
finlay.dobbie at gmail.com
Mon Oct 22 23:57:08 PDT 2007
On 23/10/2007, Graham J Lee <leeg at thaesofereode.info> wrote:
> On 22 Oct 2007, at 23:54, Finlay Dobbie wrote:
>
> > On 22/10/2007, Graham J Lee <leeg at thaesofereode.info> wrote:
> >> """
> >> A better way to get version information on Mac OS X would be to
> >> read in the
> >> system version information from the file /System/Library/
> >> CoreServices/System
> >> Version.plist.
> >> """
> >> from the Gestalt documentation.
> >
> > The documentation is wrong:
> > <http://lists.apple.com/archives/carbon-dev/2007/Aug/msg00089.html>
>
> ...but the original poster wanted to find out whether he was on
> Tiger, where the aforementioned approach _is_ documented as better.
Yes, but the documentation is wrong. The issue is not that something
has changed on Leopard which means that parsing SystemVersion.plist is
no longer "a better approach", but rather that the documentation on
Tiger is incorrect. The documentation has been corrected in Leopard.
Parsing SystemVersion.plist is probably more lines of code, and
considered to be relying on an implementation detail. Just use
Gestalt.
-- Finlay
More information about the MacOSX-dev
mailing list