Re: Drag & Drop, a lifelong curse


Steve Mills
 

On Dec 12, 2019, at 05:46:27, Shane Stanley <sstanley@myriad-com.com.au> wrote:

On 12 Dec 2019, at 9:25 am, Steve Mills via Groups.Io <sjmills=mac.com@groups.io> wrote:

So does dragging files from one app to another need some other flavor added?
Maybe I'm missing something, but can't you just use this:

[[NSPasteboard generalPasteboard] clearContents];
[[NSPasteboard generalPasteboard] writeObjects:@[url]];
Does that give you the multiple images thing where different destinations can rearrange the images in stacks, grids, or whatever? My drag source is a collection view or a table view, so the initial drag image[s] is a carbon copy of the selected items' thumbnails or table rows.

--
Steve Mills
Drummer, Mac geek

Join cocoa@apple-dev.groups.io to automatically receive all group messages.