Morph>>Delete

Jeff Longland jlonglan at uwo.ca
Wed Aug 27 15:55:00 UTC 2003


Just from taking a quick look at the Morph class, I see "initialize" where
instance variables are set.  Should I have a similar area to set the
instance variables and open my morphs?

Thanks,
Jeff

>That trick can sometimes be a not insignificant design
>challenge. One quick and easy to get onscreen results
>is to give the morph a name upon creation:
>
> jeffInst := JeffsTestMorph new.
> jeffInst openInWorld.
> jeffInst name: 'jeffInst'.
>
>Now the button mouseDown or any other method can
>access the instance by saying:
>
>World submorphNamed: 'jeffInst'
>
>Keep in mind that this approach doesn't eliminate
>design decisions and it may also introduce a few new
>ones.




More information about the Squeak-dev mailing list