[Q] isPartsDonor

Martin Drautzburg martin.drautzburg at web.de
Thu Apr 11 13:41:54 UTC 2002


olmeca at netscape.net (Rudi Angela) writes:

> You set a morph to be a parts donor when you want to use it as a
> prototype for new objects. E.g. in the 'supplies' and 'widgets' flaps
> the parts-donorship is used: whenever you drag a part from one of
> these flaps, a copy of the object is created and placed in the hand.

Oh I see ... and the prototype should not respond to mouse events the
way the "real" object does. It should basically only repond to drags
and create a copy of itself where the copy no longer is a
partsDonor. Thats why you frequently find isPartsDonor ifFalse: in the
event handling methods.

Right ? 



More information about the Squeak-dev mailing list