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

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 protected]     Runtime Wrangler



_______________________________________________

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