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: plumber Idraulico <email@hidden>
- Date: Thu, 11 May 2006 13:35:06 +0200
On 11/05/06, Brendan Creane <email@hidden> wrote:
Here's a (reconstructed) copy of sw_vers.c (source
from cached copy of
http://gobsd.com/code/darwin/build/sw_vers.c).
Please retain the license header when re-distributing source code,
especially when the license explicitly tells you to.
You'll notice that I wrote that source file, and I wasn't joking when
I said there is no API for this.
sw_vers.c uses CoreFoundation private SPI, and you should not use this
approach in shipping applications. Copy-pasting the declarations from
CFPriv.h into the source file will let you build without installing
the private headers, but the standard warnings about using SPI apply.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
darwin.org
This email sent to email@hidden
make your test file on
/System/Library/CoreServices/ServerVersion.plist
or
/System/Library/CoreServices/SystemVersion.plist
load plist
copy plist into dict
get keys of dict
you needn't CFPriv to do this
Best Regards, Plum
_______________________________________________
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