Re: How does one get the OS Product name programatically?
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com On 11/05/06, Brendan Creane <bcreane@yahoo.com> 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. This email sent to plumber@gnu-darwin.org 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 -- Finlay _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/plumber%40gnu- darwin.org Best Regards, Plum _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
plumber Idraulico