On 24 Feb 2012, at 22:11, Jean-Daniel Dupas wrote:

> 
> Le 24 févr. 2012 à 07:56, Gerriet M. Denkmann a écrit :
> 
>> The documentation says of NSProcessInfo operatingSystemVersionString:
>> "This string is not appropriate for parsing". But if fails to mention what 
>> to use instead.
>> 
>> So what should I use? Gestalt? Or is there some more convenient Cocoa 
>> alternative?
>> 
>> (I need this info for a bug workaround which occurs only in 10.6.)
>> 
> 
> A bug in what framework.
Don't know. But the bug was first seen in 10.6 and I just tested 10.6.8 and 
it's still there.
But no more in 10.7.3, and not before 10.6 either.

Just looked at NSApplication.h and there is just one entry for 10.6.
So probably this will cover all versions of 10.6.
No, it does not. But:
BOOL needFix =  NSAppKitVersionNumber <= NSAppKitVersionNumber10_6  && 
                                NSAppKitVersionNumber <  
NSAppKitVersionNumber10_7;
seems to work.

> 
> Each framework provide constants and a version global to help you determine 
> the version.
> 
> kCFCoreFoundationVersionNumber, NSFoundationVersionNumber , 
> NSAppKitVersionNumber, NSCoreDataVersionNumber, …

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to