[Vm-dev] Accepting all DNDs on Mac

Sean P. DeNigris sean at clipperadams.com
Tue Aug 11 11:41:04 UTC 2015

Use case: Accept DND from Mail.app
Problem: Currently, it seems that this would require a custom built VM
Solution: VM should accept all drops by default and let the user decide what
to do

btw is there an issue tracker for the VM where I can open a ticket?

>From original discussion at

Ben Coman wrote
>> On StackOverflow [1], it was shown how to do this in
>> Cocoa:
>> ```
>> [window registerForDraggedTypes:[NSArray
>> arrayWithObjects:(NSString*)kPasteboardTypeFileURLPromise,nil]];
>> ```
>> but do I really need to modify the VM? It seems like, since Smalltalk is
>> so
>> malleable, and more like an OS than an app, we should accept all types
>> and
>> let the user decide whether to do something with them, no?
>> [1]
>> http://stackoverflow.com/questions/4115987/how-to-get-dropped-mail-message-data-in-a-cocoa-application
> That sounds right.  Bring up a dialog reporting "Unknown paste type"
> with a button to view raw and/or start decoding it from within the
> debugger.

View this message in context: http://forum.world.st/Accepting-all-DNDs-on-Mac-tp4842062.html
Sent from the Squeak VM mailing list archive at Nabble.com.

More information about the Vm-dev mailing list