• 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: Uli Kusterer <email@hidden>
  • Date: Mon, 28 Nov 2005 10:31:09 +0100

Am 28.11.2005 um 03:44 schrieb Mr Chris Giddings:
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?

I have the feeling that Gestalt is being phased out. Just like the machine name/model ID stuff, newer OS releases are providing less and less information. Since you need two compile runs, one for Intel and one for PPC, A way to at least tell whether you're running Intel or PPC would be to use a preprocessor macro that compiles to the code you already have on PPC or to a generic @"Intel Macintosh" string on Intel.


However, you may want to check out http://www.resexcellence.com and other similar sites -- I remember they had some code to change the machine name/CPU type a Mac would display in "About this Mac". Based on that info, you may be able to read some plist file or so to get the information you need.

Another option may be to parse the output from System Profiler. I vaguely recall they introduced a more stable output format in 10.4 or 10.3 that *can* actually be parsed and isn't subject to change anymore. There's a command-line tool that does what System Profiler does, so running them should be as easy as firing off an NSTask.

 Any of this help?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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: j o a r <email@hidden>
    • Re: Finding the user's processor type...
      • From: mmalcolm crawford <email@hidden>
References: 
 >Finding the user's processor type... (From: Mr Chris Giddings <email@hidden>)

  • Prev by Date: Re: Is Apple's singleton sample code correct?
  • Next by Date: Re: Finding the user's processor type...
  • Previous by thread: Finding the user's processor type...
  • Next by thread: Re: Finding the user's processor type...
  • Index(es):
    • Date
    • Thread