[CocoaApp isThisTiger]

Alastair Houghton alastair at alastairs-place.net
Tue Oct 23 08:53:40 PDT 2007


On 23 Oct 2007, at 16:30, Finlay Dobbie wrote:

> On 23/10/2007, Alastair Houghton <alastair at alastairs-place.net> wrote:
>> It's documented all over the place in Tiger, including in
>> the manual page for the "sw_vers" tool, which is yet another way to
>> get this information.
>
> You shouldn't rely on that either:
> <http://lists.apple.com/archives/darwin-dev/2007/Aug/msg00107.html>

Yes, I remember that thread (or at least something similar that made  
its way to Cocoa-dev).  In a number of important cases, that thread  
is wrong.  Yes, I know, prior to Leopard, some things might not  
conform properly to the POSIX spec., so there may be some changes as  
a result.  But even given that caveat I can think of at least a  
couple of cases where it is *overwhelmingly* preferable to parse  
rather than trying to make the same API calls as the tool in question.

Not to mention the fact that I didn't suggest parsing the output of  
sw_vers.  I was merely pointing out that the manual page documents  
the presence of the plist file that you claimed is an "implementation  
detail".

Kind regards,

Alastair.

--
http://alastairs-place.net




More information about the MacOSX-dev mailing list