[BUG] [FIX] [eToys] ParameterTileInCompoundTiles-dgd

Scott Wallace scott.wallace at squeakland.org
Mon Jan 19 06:29:25 UTC 2004

Hi,  Diego,

Good catch!

But note that a simple one-line change to the existing ParameterTile 
method will fix this bug equally well, without any need for the four 
new Morph methods that are included in your fileout.

Specifically, simply replace (in ParameterTile>>scriptEditor) the existing

(aScriptEditor _ self ownerThatIsA: ScriptEditorMorph)


(aScriptEditor _ self outermostMorphThat: [:m | m isKindOf: ScriptEditorMorph])

FWIW, I attach a fileout that does that.


   -- Scott

At 9:20 PM +0100 1/18/04, DiegoGomezDeck at ConsultAr.com wrote:
>from preamble:
>"Change Set:		ParameterTileInCompoundTiles-dgd
>Date:			18 January 2004
>Author:			Diego Gomez Deck <DiegoGomezDeck at ConsultAr.com>
>Bug: The problem raised when a parameter to an eToy script is used
>inside a TestYesNo tile (or the new TimesRepeat).
>Fix: TestYesNo tile (and TimesRepeat) includes some ScriptEditorMorphs
>so the method ParameterTile>>scriptEditor has to consider the outermost
>one.  A simple change in this method to send #lastOwnerThatIsA: instead
>of #ownerThatIsA: fixs the problem.  A couple of methods to implemente
>lastOwnerThatIsA: are implemented using the counterpart methods as
>Funny things like
>http://swiki.agro.uba.ar/small_land/uploads/13/recursive-tree.jpeg are
>now possible.
-------------- next part --------------
Skipped content of type multipart/appledouble

More information about the Squeak-dev mailing list