Squeak on MacOS version identification?
Richard A. O'Keefe
ok at cs.otago.ac.nz
Wed Aug 20 03:49:35 UTC 2003
"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]
I have Squeak running under MacOS 8.6.
Smalltalk platformName = 'Mac OS'
Smalltalk osVersion = '860'
The only implementor of #osVersion I can find is the one in
SystemDictionary: ^(self getSystemAttribute: 1002) asString
Can/could (Smalltalk getSystemAttribute: 1002) ever return something
other than a string of digits?
At any rate, it works on my machine.
More information about the Squeak-dev
mailing list
|