Re: Pasteboard and NSImage and Finder
Re: Pasteboard and NSImage and Finder
- Subject: Re: Pasteboard and NSImage and Finder
- From: Rob Petrovec <email@hidden>
- Date: Tue, 10 Apr 2018 14:29:29 -0600
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 <email@hidden> 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 <email@hidden> 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 <email@hidden> 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 (email@hidden)
>>>
>>> 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:
>>>
>>> This email sent to email@hidden
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden