Re: How does one get the OS Product name programatically?
Re: How does one get the OS Product name programatically?
- Subject: Re: How does one get the OS Product name programatically?
- From: "Finlay Dobbie" <email@hidden>
- Date: Wed, 10 May 2006 20:08:34 +0100
On 10/05/06, David Litwin <email@hidden> wrote:
From posts on macos-x-server I see that "sw_vers –productName" will give me
exactly what I am looking for (i.e. whether I am running Mac OS X or Mac OS
X Server), but I'd like to get this within my program without having to
shell out to a tool (it gets it from *some* API).
There is no public API for this. As you ascertain, checking for
ServerVersion.plist is a way of doing this that will work on all
current released verisons of OS X Server.
File a bug.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden