[BUG] unimplemented method called from TransferMorph>>justDroppedInto: event:

Alain Plantec alain.plantec at univ-brest.fr
Sun Apr 3 13:19:24 UTC 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



More information about the Squeak-dev mailing list