Re: How does one get the OS Product name programatically?
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lluogsIIQQVPzmVA8QeWbHwOblReDTjg94vFzfxR5k7aGu4TV/yNF6uiTBYfOCIKcDshVyY/ESG4YZUaifdlcjQao+kpLXA6FxovBVkSZF78E33QI45LVPZhSU58uXh1S15IBOKypVWv2VYLswYTrJBptGvnPSOpEy5HXg3RI4g= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 11/05/06, Brendan Creane <bcreane@yahoo.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Finlay Dobbie