On Fri, Nov 14, 2008 at 3:27 PM, Sean McBride <[EMAIL PROTECTED]> wrote:
> On 11/15/08 1:48 AM, chaitanya pandit said:
>
>>+ (BOOL)MacOSTigerOrLower
>>{
>> UInt32 version;
>> return (Gestalt(gestaltSystemVersion,(SInt32 *) &version) ==
>>noErr) && (version < 0x01050 );
>>}
>
> Gestalt() is a good approach, but never use gestaltSystemVersion. See
> Gestalt.h for why.
I don't think you need to "never use" it. Its failure mode is fairly
benign and completely documented. If you're only interested in
checking for numbers under 9, such as in this case, then it works just
fine.
Mike
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [EMAIL PROTECTED]