Finding the user's processor type...
Finding the user's processor type...
- Subject: Finding the user's processor type...
- From: Mr Chris Giddings <email@hidden>
- Date: Sun, 27 Nov 2005 21:44:07 -0500
Hey,
I am working on updating an old application for an IT group who
expects to be buying machines with the intel processors once they are
released. The question I have is related to finding the user's
processor type. Currently I am using the following code to judge the
user's processor type before sending off the information on the
user's machine to the IT group for audit.
if (!Gestalt( gestaltNativeCPUtype, &result ))
{
if ( result == gestaltCPU750 || result == gestaltCPU750FX )
{
NSString *brainType =@"G3 Processor";
[advancedBrainType setStringValue:brainType];
}
else if ( result == gestaltCPUG4 )
{
NSString *brainType =@"G4 Processor";
[advancedBrainType setStringValue:brainType];
}
else
{
NSString *brainType =@"G5 Processor";
[advancedBrainType setStringValue:brainType];
}
}
Documentation on this area of gestalt is sparse at best and
generally only covers pre G5 machinery. With the advent of the Intel
based machinery it seems there isn't a methodology for interpreting
the user's processor type with gestalt. Is there another method I
should be pursuing here?
Cordially,
Chris Giddings
President, Ripple
www.ripplesw.net
1 513 884 2276
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden