Nope.  Pasteboard does not support ‘promised' data like drags do.  Sorry.  You 
could write them to a temporary folder (e.g. NSTemporaryDirectory()) and then 
stuff the URLs on the pasteboard.

—Rob


> On Apr 10, 2018, at 12:44 PM, Daniel Santos <daniel.d...@gmail.com> wrote:
> 
> That thought crossed my mind. I don’t want to write the file to disk, just 
> have a NSFile object in memory, is that possible ?
> 
> Daniel
> 
>> On 9 Apr 2018, at 23:25, Rob Petrovec <petr...@mac.com> wrote:
>> 
>> You need to put files on the pasteboard.  Finder only plays with files, not 
>> raw image data.
>> 
>> —Rob
>> 
>> 
>>> On Apr 9, 2018, at 4:12 PM, Daniel Santos <daniel.d...@gmail.com> wrote:
>>> 
>>> Hello all,
>>> 
>>> I am pasting an array of NSImage to the general pasteboard. (using 
>>> pasteboard .writeObjects())
>>> I would like to be able to paste the images onto Finder. What do I need to 
>>> do ?
>>> 
>>> Thanks in advance
>>> _______________________________________________
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>> 
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com
>>> 
>>> This email sent to petr...@mac.com
>> 
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to