简体   繁体   中英

How to close / delete a Morph in Squeak?

Let's say I have a new Morph:

m := Morph new.
m openInWorld.

How do I close / delete the Morph off?

m removeFromWorld.

To remove a morph from the world, use the delete method.

m := Morph new.
m openInWorld.
...
m delete.

delete removes the morph from its parent morph (which is the world after openInWorld ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM