Mac filetype (was Re: Type Safety (was Re: fun and empowerment))

Tim Rowledge tim at sumeru.stanford.edu
Wed Feb 2 18:19:50 UTC 2000


#setMacFileNamed:type:creator: is used in four places within the image
to set the file type info for Macs. Whilst it may be perfectly
reasonable, even essential, to do this on a Mac, it is very poor
practise to do something so unportably at such a high level.
It's also done in the image writing primitive code and every time a file
is opened the Mac will set the type to TEXT/R*ch.

I don't think there would be any problem with reading the
sources/changes if they were some other type (but who knows? Macs do
some funny things) however the code for condensing the files would have
to change or they would become TEXT/R*ch as a side effect.

ti






More information about the Squeak-dev mailing list