I do not know more but indeed we will have to clean and simplify that. STef
On Aug 16, 2012, at 11:24 AM, Helene Bilbo wrote: > > Stéphane Ducasse wrote >> >>> My problem seems to be specific to the case, where a file or folder from >>> outside the Pharo window is dropped on the Morph. In this case it's >>> always >>> the World that gets to handle the drop before my Morph is even asked to >>> do >>> anything about it. >> >> Check the code in HandMorph because it is the one that we started to clean >> with igor (our cleans are not in the image). >> But the handmorph has some wonderful case statement that handle the drop >> from external >> Sorry not to be able to be more supportive. >> > > Thank you for the hint. It seems the problem lies in the fact that a > "dropFilesEvent" is different from a "dropEvent" and therefore is not > handled by MorphicEventDispatcher>>dispatchDropEvent:with: but by > MorphicEventDispatcher>>dispatchEvent:with: and they handle differently > which morph may get to process the event. > Still i have not yet a solution ;( > > http://forum.world.st/file/n4644226/Bildschirmfoto_2012-08-16_um_11.17.35.png > > > > -- > 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-tp4644119p4644226.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >
