Morph>delete
Joshua Gargus
schwa at cc.gatech.edu
Thu Sep 7 13:42:52 UTC 2000
Deleting a morph removes it from its owner. If you later want to give
it an owner, you don't all of its submorphs to be gone, which is what
would happen if you propagated delete down.
The method you want to override/call is #abandon, I believe.
Joshua
"Eric Arseneau" <eat at huv.com> wrote:
> Can someone explain to me why delete'ing a morph, does not pass this on to
> the submorphs ? Is this an expected feature ? The problem I ran into was
> that a submorph down in the morph tree needs to release some resources when
> it is no longer in need. I had assume that delete would trickle down the
> morph tree, but it does not seem to. It does disconnect itself from its
> parent, but the children are left out in the cold.
More information about the Squeak-dev
mailing list
|