[Vm-dev] Re: Accepting all DNDs on Mac

John McIntosh johnmci at smalltalkconsulting.com
Tue Aug 11 14:57:10 UTC 2015

There is a pool variable EventTypeDragDropFiles
Look at method generateDropFilesEvent:

There is sqMacDragDrop.c for Carbon
For Cocoa there is sqSqueakOSXDropAPI.m

So it should support drag/drop of files
As it only supports NSFilenamesPboardType

    [self registerForDraggedTypes: [NSArray arrayWithObjects:
NSFilenamesPboardType, nil]];

On Tue, Aug 11, 2015 at 7:18 AM, Sean P. DeNigris <sean at clipperadams.com>

> johnmci wrote
> > The carbon and cocoa VM does support drag and drop see
> > https://isqueak.org/ioGetNextEvent
> > Maybe someone ripped out the image side logic?
> The reason I thought it was a VM issue is that, for Mail.app message drops
> (unlike with file drops), the icon flies back to Mail.app, and no event is
> generated (i.e. `Sensor nextEvent` never returns a non-nil value). Also,
> with files, the Pharo window shows an inside border, apparently indicating
> that the drop will be accepted. Is all that determined on the image-side?
> If
> so, can you point me in the direction of that code?
> -----
> Cheers,
> Sean
> --
> View this message in context:
> http://forum.world.st/Accepting-all-DNDs-on-Mac-tp4842062p4842116.html
> Sent from the Squeak VM mailing list archive at Nabble.com.

John M. McIntosh <johnmci at smalltalkconsulting.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150811/30faf848/attachment.htm

More information about the Vm-dev mailing list