• 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
Finding the user's processor type...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Finding the user's processor type...
      • From: Rosyna <email@hidden>
    • Re: Finding the user's processor type...
      • From: Jason Prell <email@hidden>
    • Re: Finding the user's processor type...
      • From: Markus Hitter <email@hidden>
    • Re: Finding the user's processor type...
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: CFSocket freezes
  • Next by Date: Re: CFSocket freezes
  • Previous by thread: default backgrounds for images
  • Next by thread: Re: Finding the user's processor type...
  • Index(es):
    • Date
    • Thread