Re: Drag & Drop, a lifelong curse


Shane Stanley
 

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]];

--
Shane Stanley <sstanley@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>

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