• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding the user's processor type...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Finding the user's processor type... (From: Mr Chris Giddings <email@hidden>)

  • Prev by Date: Re: Finding the user's processor type...
  • Next by Date: Re: CFSocket freezes
  • Previous by thread: Re: Finding the user's processor type...
  • Next by thread: Re: Finding the user's processor type...
  • Index(es):
    • Date
    • Thread