Re: Finding the user's processor type...
Re: Finding the user's processor type...
- Subject: Re: Finding the user's processor type...
- From: Rosyna <email@hidden>
- Date: Mon, 28 Nov 2005 22:21:23 +0900
Note that if you are running under Rosetta, all the APIs will return PPC.
Ack, at 11/27/05, Mr Chris Giddings said:
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];
}
}
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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