Re: Detect legacy OSX
Re: Detect legacy OSX
- Subject: Re: Detect legacy OSX
- From: Uli Kusterer <email@hidden>
- Date: Wed, 22 Aug 2007 20:13:07 +0200
On 22.08.2007, at 02:06, Nick Zitzmann wrote:
On Aug 21, 2007, at 5:59 PM, Andrew James wrote:
I am trying to find a method to detect if the OS version is less
than 10.4, however i do not want to block 10.5 and such users as
well as the OS version is retrieved as 10.x.xx so a simple < will
not work.
How do you guys detect it?
Use Gestalt() with gestaltSystemVersion.
Note that gestaltSystemVersion will return 10.4.9 for 10.4.10 because
it doesn't have enough digits for that. But if you're testing for
less than 10.4, that'll work fine. Otherwise, there are other keys
that let you get each part of the version which you can then compare
separately.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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