[futurebasic] Re: Detecting PBs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Mel and Carol <mel@...>
Date: Sat, 27 Dec 1997 10:44:32 -0800
>Does anyone have code or pointers for detecting if the Mac an application
>is running on is a PowerBook ?????

Get FN GESTALT with the _"mach" as the type. It will return a number you
can look up to see if its running on a PB. Good think Apple is the only one
making PB's these days...

macType=FN GESTALT(_"mach"):'      get the type of mac

24= pb100
25 = pb140

I don't know what the rest are....

Humm, if you are going to run this on System 6, might be a good idea to
check for the GESTALT manager before you use it...

You can also use FB's SYSTEM(_machType) command to find the number.

Mel Patrick - theWabbitGuy - mel@...
http://www.intergate.bc.ca/business/mel