RE: How do you get the OS X version number in C or C++?
RE: How do you get the OS X version number in C or C++?
- Subject: RE: How do you get the OS X version number in C or C++?
- From: "Tom Fortmann" <email@hidden>
- Date: Fri, 14 Nov 2008 14:53:07 -0600
What framework do I include in my Xcode project to pull in Gestalt? I've
tries CoreServices, Carbon and Cocoa.
-----Original Message-----
From: Sean McBride [mailto:email@hidden]
Sent: Friday, November 14, 2008 2:27 PM
To: chaitanya pandit; Tom Fortmann
Cc: email@hidden
Subject: Re: How do you get the OS X version number in C or C++?
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.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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