Re: operatingSystemVersionString replacement
Re: operatingSystemVersionString replacement
- Subject: Re: operatingSystemVersionString replacement
- From: Kyle Sluder <email@hidden>
- Date: Thu, 24 Oct 2013 22:58:56 -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 and 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)
Except that there’s no guarantee that AppKit had changed between different uname version changes, nor vice versa.
If the bug you're working around is in AppKit, use NSAppKitVersionNumber, until such time that a new OS release makes it a built-on-or-after check which you can base on the target SDK (or eliminate entirely).
That is the _only_ correct approach. Any other suggestion is incorrect.
--Kyle Sluder
_______________________________________________
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