Accepting Email Drops on Pharo Window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accepting Email Drops on Pharo Window

Sean P. DeNigris
Administrator
Does anyone have experience with accepting drops of file types which are not supported by default? 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
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Accepting Email Drops on Pharo Window

Ben Coman
On Mon, Aug 10, 2015 at 11:01 PM, Sean P. DeNigris
<[hidden email]> wrote:

> Does anyone have experience with accepting drops of file types which are not
> supported by default? 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.
cheers -ben