• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does one get the OS Product name programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Thu, 11 May 2006 10:10:06 +0100

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How does one get the OS Product name programatically?
      • From: plumber Idraulico <email@hidden>
References: 
 >re: How does one get the OS Product name programatically? (From: Brendan Creane <email@hidden>)

  • Prev by Date: re: How does one get the OS Product name programatically?
  • Next by Date: Re: How does one get the OS Product name programatically?
  • Previous by thread: re: How does one get the OS Product name programatically?
  • Next by thread: Re: How does one get the OS Product name programatically?
  • Index(es):
    • Date
    • Thread