> On Oct 24, 2013, at 10:36 PM, Maxthon Chan <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to