[?] How can I test for my platform in Squeak?
Raab, Andreas
Andreas.Raab at disney.com
Fri Apr 30 21:44:41 UTC 1999
That is one possibility - if you need more precise information then look at
Smalltalk getSystemAttribute: 1001. "Basic OS type (e.g., Unix, Win32, Mac)"
Smalltalk getSystemAttribute: 1002. "Special OS type (e.g., 95, NT, WinCE
for Win32)"
Smalltalk getSystemAttribute: 1003. "Processor tyoe (e.g., IX86, MIPS, SH3
for Win32)"
Andreas
--
+===== Andreas Raab ========= (andreasr at wdi.disney.com) ==+
| Walt Disney Imagineering Phone: +1 818 544 5016 I
I Glendale, CA Fax: +1 818 544 4544 I
+======< http://isgwww.cs.uni-magdeburg.de/~raab >========+
> ----------
> From: Stephen Travis Pope
> Reply To: squeak at cs.uiuc.edu
> Sent: Friday, April 30, 1999 12:05 PM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: Re: [?] How can I test for my platform in Squeak?
>
>
> "Norton, Chris" wrote:
> >
> > Hi Folks.
> >
> > I must have my stupid hat on today...
>
> Well finally somebody took it away from me!
>
> > Can anybody tell me how I can determine what platform I'm running from
> > within Squeak?
>
> How about using FileDirectory activeDirectoryClass -- it returns the
> Mac/Dos/UNIX directory class that's right for the current platform. (It
> uses a nasty kludj related to the fact that they have different filename
> separator characters.)
>
> --
> stp
>
> Stephen Travis Pope | stp at create.ucsb.edu |
> http://www.create.ucsb.edu/~stp
>
More information about the Squeak-dev
mailing list
|