Drag and Drop (PBE)
Last updated at 6:15 pm UTC on 22 February 2017
Let's first define the receiver morph:
Morph subclass: #ReceiverMorph
With a usual initialization method:
ReceiverMorph >> initialize
color := Color red.
bounds := 0 @ 0 extent: 200 @ 200
Drag and Drop: receiver morph needs to implement 'wantsDroppedMorph:anEvent'
What happens to a dropped morph if the receiving morph doesn't want it?