How to update the appearance of a morph in mid-method?

lex at cc.gatech.edu lex at cc.gatech.edu
Sat Jan 8 10:09:07 UTC 2005


Just so you know, the polite approach is to send #changed and let the
system redraw itself naturally.  That's just how Morphic works, and is
what is expecting to deal with.

If you are wanting to do some sort of animation, then the polite
approach is to use things like #step and #addDeferredUIMessage:.  It's a
little more work, but it means that your morph plays by the rules that
morphic is expecting.  As one example, if you play polite, then all the
other morphs on the screen will still get to animate and respond to
events while your animation is happening.

That said, carry on.  It's your image, of course!


-Lex



More information about the Squeak-dev mailing list