Re: What to use instead of operatingSystemVersionString
Re: What to use instead of operatingSystemVersionString
- Subject: Re: What to use instead of operatingSystemVersionString
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 24 Feb 2012 23:15:32 +0700
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 (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