[Vm-dev] Re: Accepting all DNDs on Mac
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:
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?
> so, can you point me in the direction of that code?
> View this message in context:
> 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...
More information about the Vm-dev