• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What to use instead of operatingSystemVersionString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >What to use instead of operatingSystemVersionString (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: What to use instead of operatingSystemVersionString (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: text field question
  • Next by Date: Re: I added an exception breakpoint to my app...
  • Previous by thread: Re: What to use instead of operatingSystemVersionString
  • Next by thread: Re: What to use instead of operatingSystemVersionString
  • Index(es):
    • Date
    • Thread