Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining OS version



on 05/10/18 08:35, Paul J. Lucas at email@hidden wrote:

> I've seen other applications check the contents of the file:
> 
> /System/Library/CoreServices/SystemVersion.plist
> 
> and look at the ProductVersion string.  Is this the best way to
> check the version of Mac OS X that's running?  If not, what is?

I don't know if this is better, but it's easier: Compare the value of the
global variable NSAppKitVersionNumber to the constants you see when you type
NSAppKitVersionNumber into your Xcode > Help > Documentation search box. 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Determining OS version (From: "Paul J. Lucas" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.