Celeste - squeak attachments

Lex Spoon lex at cc.gatech.edu
Tue May 23 18:11:03 UTC 2000


Mats Nygren <nygren at sics.se> wrote:
> Dear Squeakers,
> 
> What about implementing some special handling for squeak material. For
> instance attaching a morph to an email, sending it to some squeakers, they
> can get it out of Celeste immediately without first saving it.
> 

I was actually thinking of stuff like this today, and here's how I think
this should be done.  It's so simple--just get stuff into objects and
then use the objects.  Comments are welcome.

The first step is, have a system that converts any data in any mime-type
into text.  Celeste can use this system to give an initial morphic view
of any document that was mailed.

The second step is, add most of the file-list menu items to TextMorph. 
After all, it's not *files* that you want to apply most conversions to,
it is the *text* contained in the files.  You should really be able to
take a textmorph and:

	1. file it in as a morph/project
	2. file it in as code
	3. file it into a new changeset
	4. file it in as a bitmap image
	5. gunzip it into another textmorph


(By the way, while we're at it, let's allow people to drop a text morph
(or any morph!) onto a file list, and have the morph be saved to
disk....)

Anyway, it seems to me that the combination of these two things should
make Squeak interact quite well with existing Internet documents.  To
make it work, the main effort is to organize the data+mimetype->morph
system, preferably allowing new handlers to be added as packages are
loaded.  (that is, there should be a #forType:addHandler: method somewhere).


-Lex





More information about the Squeak-dev mailing list