• 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 do you get the OS X version number in C or C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get the OS X version number in C or C++?


  • Subject: Re: How do you get the OS X version number in C or C++?
  • From: Randall Meadows <email@hidden>
  • Date: Fri, 14 Nov 2008 13:25:07 -0700

On Nov 14, 2008, at 1:06 PM, Tom Fortmann wrote:

Is there a core foundation function for querying the Mac OS X operating
system name and version information? The uname() API returns the Darwin
kernel version information, but I need to find the OS X 10.x.x information.

If nothing else, you can use an NSTask to execute "sw_vers" with the appropriate option (which, in this case is -productVersion I think; see 'man sw_vers' for details).
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How do you get the OS X version number in C or C++? (From: "Tom Fortmann" <email@hidden>)

  • Prev by Date: Re: Notifying that a TextView's content has been changed?
  • Next by Date: Re: How do you get the OS X version number in C or C++?
  • Previous by thread: Re: How do you get the OS X version number in C or C++?
  • Next by thread: Re: How do you get the OS X version number in C or C++?
  • Index(es):
    • Date
    • Thread