I already asked this on Stackoverflow, but as there were no answers, I post the question also here:
I want to build a Morph that accepts the dropping of files and folders onto it and that answers a new FileSystem FileReference for them in Pharo 1.4. I found the class ExternalDropHandler and the wantsDropFiles: anEvent method in Morph, but it don't know how to put it all together, especially as ExternalDropHandler seems to work still with the old Files file system. *What I did so far:* I made a subclass of Morph and implemented wantsDroppedMorph: aMorph event: evt, wantsDropFiles: anEvent and dropFiles: anEvent and set enableDragNDrop: to True. I open an instance in World and bring the Morph to the front. But, whenever I drop a file or folder onto it, it's the World, instance of PasteUpMorph, that get's to handle the drop (I found out by putting in some self halts) and not my Morph. -- View this message in context: http://forum.world.st/HowTo-make-a-Morph-that-accepts-dropped-files-and-folders-and-produces-a-new-FileSystem-FileReferenc4-tp4644119.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
