[Squeak-fr] [BUG] unimplemented method called from
TransferMorph>>justDroppedInto: event:
Alain Plantec
alain.plantec at univ-brest.fr
Dim 3 Avr 15:13:51 CEST 2005
Hy all,
Trying to understand Squeak framework for drag and drop :
From Squeak 3.7 (#5989) and Squeak 3.8
- #dropAcceptedMorph: from: is not implemented anywhere.
- #dropNotifyRecipient: is never send
- #dropNotifyRecipient is only send from TransferMorph>>justDroppedInto:
event: and TransferMorph>>delete
- dropNotifyRecipient TransfertMorph inst var is only writen from
TransfertMorph>>dropNotifyRecipient: and read from
TransfertMorph>>dropNotifyRecipient
justDroppedInto: targetMorph event: anEvent
"If only world wants this TransferMorph, treat it as unaccepted (see
also >>delete)."
super justDroppedInto: targetMorph event: anEvent.
self halt.
accepted := targetMorph ~= self world.
self animationForMoveSuccess: accepted.
accepted
ifTrue: [self dropNotifyRecipient
ifNotNil: [self dropNotifyRecipient dropAcceptedMorph:
self from: targetMorph]].
self delete
alain
Plus d'informations sur la liste de diffusion Squeak-fr