According to the docs: The Dragged Image
The image that is dragged in a dragging session is simply an image that represents the data on the pasteboard. Although a dragging destination can access the image, its primary concern is with the pasteboard data that the image represents—the dragging operation that a destination ultimately performs is on the pasteboard data, not on the image itself. When the dragging session is started by using the NSView method dragFile:fromRect:slideBack:event:, NSView uses the file’s Finder icon for the image. For your own custom drags, you need to construct a suitable image. Possibilities include a semi-transparent snapshot of the displayed data, such as the selected section of text, or a symbolic representation of the data, such as a table icon when dragging spreadsheet data. So, I assume you can create a semi-transparent image yourself in this method? On Mon, Nov 16, 2020 at 8:18 AM JP HARMAND via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > If I assign an opaque image to an NSDrag, the system add some > transparency to my image while dragging. > This is OK, but I would like to adjust this transparency to better see > through the image while it is over some of my app interface objects. > Could not find any way to do this . > Of course I can make my image itself transparent, but I don’t want that > because the image will become later the icon for a file. > > Is there a way to achieve that in Cocoa ? > Thanks for any help > > RGDS > JPH > > > > _______________________________________________ > > 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/howard%40antarestech.com > > This email sent to how...@antarestech.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