[squeak-dev] About the transferMorphConverter logic

Stéphane Rollandin lecteur at zogotounga.net
Sun Apr 18 16:30:43 UTC 2010


In my current effort of porting muO to 4.1 I stumbled upon the new logic 
to handle the way TransferMorphs are dropped into the World.

The idea is nice, but the implementation is lacking IMHO. Here are some 
troublesome points:

- When the transferMorphConverter is not #yourself, any TransferMorph is 
supposed to translate into a suitable Morph to drop. This may not always 
be the case though; in muO, some TransferMorphs are suitable, some not. 
Currently there is no way to handle unsuitable ones (I have made a 
VanishingMorph which is deleted as soon as it gets a new owner to handle 
the case)

- There does not seem to be a way to give a default 
transferMorphConverter for new morphic projects. I guess this should 
happen in PasteUpMorph>>beWorldForProject:, with some registering 
mechanism for defining the default value.


Stef





More information about the Squeak-dev mailing list