Re: operatingSystemVersionString replacement
Re: operatingSystemVersionString replacement
- Subject: Re: operatingSystemVersionString replacement
- From: Greg Parker <email@hidden>
- Date: Thu, 24 Oct 2013 22:29:55 -0700
On Oct 24, 2013, at 9:46 PM, Gerriet M. Denkmann <email@hidden> wrote:
> On 25 Oct 2013, at 11:24, Greg Parker <email@hidden> wrote:
>> On Oct 24, 2013, at 8:49 PM, Gerriet M. Denkmann <email@hidden> wrote:
>>> The documentation tells me that NSProcessInfo operatingSystemVersionString "is human readable, localized, and is appropriate for displaying to the user. This string is not appropriate for parsing."
>>>
>>> Ok. So what do I use for parsing?
>>>
>>> like: if ( current_os_x_version < 10.9 ) then do something...
>>>
>>> Once there was Gestalt, but this is deprecated since 10.8.
>>
>> What are you trying to do? What sort of thing is inside "do something" ?
>
> Working around bugs which have been fixed in 10.9. (E.g. 15005906).
The typical recommendation for cases like this is to check NSFoundationVersionNumber or NSAppKitVersionNumber.
See "Runtime Version Check" in the AppKit release note for examples.
https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKit/
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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