• 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: Detect legacy OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Detect legacy OSX (From: Andrew James <email@hidden>)
 >Re: Detect legacy OSX (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Xcode 2.5 - What's different?
  • Next by Date: Re: Drawing text with alpha
  • Previous by thread: Re: Detect legacy OSX
  • Next by thread: Re: Detect legacy OSX
  • Index(es):
    • Date
    • Thread