Finding runaway Morph and killing it
Bert Freudenberg
bert at isg.cs.uni-magdeburg.de
Sun Nov 16 16:38:47 UTC 2003
Danie Roux wrote:
> Hi,
>
> I am busy playing with Morphic, and managed to write a piece of code
> that lets a Morph scroll of screen and continue scrolling forever.
>
> Now my process is at 100% when I open Squeak.
>
> How can I find and delete all instances of a Morph?
Literally as you said it ;-)
MyMorph allInstancesDo: [:m | m delete]
To only delete top-level morphs:
World submorphs do: [:m | m class = MyMorph ifTrue: [m delete]]
--
Bert
More information about the Squeak-dev
mailing list
|