Re: Pasteboard and NSImage and Finder
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 Santoswrote: > > 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 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 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
Re: Pasteboard and NSImage and Finder
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 Petrovecwrote: > > 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 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
Re: Pasteboard and NSImage and Finder
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 Santoswrote: > > 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
Pasteboard and NSImage and Finder
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/archive%40mail-archive.com This email sent to arch...@mail-archive.com