[squeak-dev] Drag-drop in Morphic; updating old code

tim Rowledge tim at rowledge.org
Thu Jul 25 20:17:58 UTC 2013


I have Ye Ancient Code using drag & drop morphs; I need to update it. I'm making a little progress but could do with some pointers on how it changed and what to look out for.

For example, so far as I can tell the old way involved #rejectDropEvent: (why do I keep typing #rejectFropEvent:? ) being used once the drop had been rejected and it was responsible for dealing with sending things back, Now it seems to be the place where the decision is made and there is a default implementation in Morph. I deleted the several versions I had in the Olde Code and so far it *appears* to work - but I hate not knowing what should work & why for things that I'm having to repeatedly sort out. Again, so far as I can tell, adding #wantsToBeDropped: seems to be the place to do the deciding.

There are a bunch of #justDroppedInto:event: methods, some in the current image and some from Ye Olde Code and I'm pretty sure some changes must be needed to update things. The swiki page on d&d is from 2001 (by our late friend DNS) and discusses the very old way. It might be nice to be able to update for the current way.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: APX: Apply Power and eXplode




More information about the Squeak-dev mailing list