Skip navigation.
 
mlRe: Getting a carbon's info string
FROM : Ricky Sharp
DATE : Fri Nov 05 15:51:17 2004

On Friday, November 05, 2004, at 08:15AM, Dan Saul <daniel.<email_removed>> wrote:

>I am wondering how to get a carbon's info string preferably from
>cocoa, I've looked all over, googled, and searched this mailing list,
>but i haven't been able to find anything useful to this. If anyone
>would be able to help I'd be grateful.


To get the version of Carbon, you need to use the Gestalt API with the gestaltCarbonVersion selector (see Gestalt.h).

However, note that the version of Carbon really only had meaning under Mac OS 8.x & 9.x.  Under those OS versions, the version obtained is the exact version of CarbonLib that is installed.  The various versions of Mac OS X do return values for Carbon, but they were often close approximations to the 8.x/9.x CarbonLib version.  What I mean by this is that the development efforts of CarbonLib and Mac OS X were often staggered.

Since future development of CarbonLib is not going to happen, I would suggest not worrying about querying the version.  Especially if you are developing apps for Mac OS X 10.2 and later.

Finally, note that Carbon still does evolve under Mac OS X.  New APIs are introduced all the time.  Those APIs, however, are not added to CarbonLib.  I'm not sure how Apple will version Carbon under Mac OS X from this point onward.  My guess is that the version is bumped for major OS releases.

How do you plan to use this version info?  There may be better solutions available to solve the problems you have.

--
Rick Sharp
Instant Interactive(tm)

Related mailsAuthorDate
mlGetting a carbon's info string Dan Saul Nov 5, 14:49
mlRe: Getting a carbon's info string Ricky Sharp Nov 5, 15:51
mlRe: Getting a carbon's info string Dan Saul Nov 5, 16:50
mlRe: Getting a carbon's info string Frederick Cheung Nov 5, 18:01
mlRe: Getting a carbon's info string Ricky Sharp Nov 5, 19:09
mlRe: Getting a carbon's info string M. Uli Kusterer Nov 5, 19:26