Squeak on MacOS version identification?

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Wed Aug 20 09:22:34 UTC 2003


On 19/08/03 22:07, "David T. Lewis" <lewis at mail.msen.com> wrote:

> Could some kind person with a Mac please tell me if the following expression
> answers true to the question "is Squeak running on a Mac OS platform that
> predates Mac OS X and that cannot be treated like a generic Unix operating
> system." Thanks.
> 
> (Smalltalk platformName = 'Mac OS')
> and: [(Smalltalk osVersion asInteger ifNil: [0]) < 1000]
David:

Your code eval to true under OS 9.1 and to false to OS X.

Wonder method to know Apple do one step in a wrong direction. (They should
re hire Alan and all squeakers again),

edgar



More information about the Squeak-dev mailing list