Re: Finding the user's processor type...
Re: Finding the user's processor type...
- Subject: Re: Finding the user's processor type...
- From: Jason Prell <email@hidden>
- Date: Mon, 28 Nov 2005 07:09:30 -0600
If you only need to know the architecture type (ppc or intel), try /
usr/bin/arch.
-Jason
On Nov 27, 2005, at 8:44 PM, Mr Chris Giddings wrote:
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:
40uiowa.edu
This email sent to email@hidden
_______________________________________________
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