On Wed, 21 Sep 2011 13:26:32 -0600, koko said:

>Is Gestalt(gestaltSystemVersion, &MacVersion) the wat toget OSX versions
>today and moving forward?

No.  Because it's BCD and breaks for values larger than 9.  See Gestalt.h.  
Instead, use:

        SInt32 major = 0;
        (void)Gestalt (gestaltSystemVersionMajor, &major);
        
        SInt32 minor = 0;
        (void)Gestalt (gestaltSystemVersionMinor, &minor);
        
        SInt32 fix = 0;
        (void)Gestalt (gestaltSystemVersionBugFix, &fix);

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to