Re: operatingSystemVersionString replacement
Re: operatingSystemVersionString replacement
- Subject: Re: operatingSystemVersionString replacement
- From: Greg Parker <email@hidden>
- Date: Thu, 24 Oct 2013 23:46:05 -0700
On Oct 24, 2013, at 10:36 PM, Maxthon Chan <email@hidden> wrote:
> Well I prefer uname() as it is 1) POSIX standard, cross-platform method
If you're already working around an OS bug then it should be acceptable to use OS-specific means to do so.
> 2) more fine grained as it tells minor versions apart. (e.g. I can tell Mavericks DP4 apart from Mavericks DP7 from Mavericks GM from App Store release of Mavericks from Mavericks 10.9.1)
If you look at the documentation of NSFoundationVersionNumber and NSAppKitVersionNumber you'll see that they change in almost every release. uname() gives you a kernel version number, which similarly changes in almost every release but is not guaranteed to do so.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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