[CocoaApp isThisTiger]
Alastair Houghton
alastair at alastairs-place.net
Wed Oct 24 03:07:39 PDT 2007
On 23 Oct 2007, at 18:25, Finlay Dobbie wrote:
> On 23/10/2007, Alastair Houghton <alastair at alastairs-place.net> wrote:
>> Plus Gestalt() doesn't help you in all cases where this file might.
>
> Would you care to elaborate on that?
I already did.
Gestalt() can't tell you the build number (and sometimes there are
different versions of Mac OS X with the same major/minor/bugfix... it
commonly happens when new hardware is released, for example). And it
only tells you about the *running* system; if, for instance, you need
to identify a build of Mac OS X that's on some other disk, you can't
ask Gestalt() for that information.
>> So, sure, you should use Gestalt() if that's what you need. But
>> before stating categorically that Gestalt() is the One True Way, it's
>> worth realising that not everybody's needs are the same and sometimes
>> that means doing something different.
>
> Perhaps where "something different" is not "determining what version
> of Mac OS X we're running on", but then we were never discussing that.
That's not strictly true. It had entered the discussion on more than
one occasion, including (I think) in every post I've made on the
topic, as well as some from some of the other contributors.
IMO, checking the Mac OS X version is normally the wrong thing to
do. It may sometimes be a necessary evil, but usually there are
better ways to get things done.
Kind regards,
Alastair.
--
http://alastairs-place.net
More information about the MacOSX-dev
mailing list