Skip navigation.
 
mlRe: Using Gestalt... (Resend)
FROM : Diggory Laycock
DATE : Mon Nov 18 14:10:06 2002

See here:

http://www.cocoadev.com/index.pl?GestaltAndCocoa



On Sunday, November 17, 2002, at 09:53  pm, Gregory Weston wrote:

> On 11/17/02 at 10:44 AM, Chris Giddings <<email_removed>> wrote:
>

>>  In order to do the properly I've chosen to use gestaltProcClkSpeed
>> and
>> gestaltProcessorType to grab the speed and type of processor.  Both of
>> these require some divider in order to process them into an
>> understandable value.  Does anyone know what this value is?  I know
>> the
>> speed should be divided by 1000000, but what should the processor type
>> be worked with?  Perplexing to me.  Thanks.

>
> Result values for Gestalt are fairly well documented at in Apple's
> online
> documentation and headers. An example:
>
> enum {
>    /*gestaltProcessorType response values*/
>    gestalt68000 = 1,    /*68000 microprocessor*/
>    gestalt68010 = 2,    /*68010 microprocessor*/
>    gestalt68020 = 3,    /*68020 microprocessor*/
>    gestalt68030 = 4,    /*68030 microprocessor*/
>    gestalt68040 = 5      /*68040 microprocessor*/
> };
>
> You can also look at gestaltNativeCPUtype, which I believe is
> preferred over
> gestaltProcessorType.
>
> As an alternative, you can get Apple System Profiler to do what you
> want. You
> can either give the user instructions to create the report, or do it
> programmatically. Here's a quick-n-dirty AppleScript form:
>
> tell application "Apple System Profiler"
>  set theReport to make new report at 1 with properties {report view
> format:text}
>  --close theReport saving yes
> end tell
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>

Diggory Laycock
----------------------
http://www.monkeyfood.com
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlUsing Gestalt... (Resend) Chris Giddings Nov 17, 16:03
mlRe: Using Gestalt... (Resend) Gregory Weston Nov 17, 22:53
mlRe: Using Gestalt... (Resend) Diggory Laycock Nov 18, 14:10