Re: How do you get the OS X version number in C or C++?
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