objective-cmacoscocoanstablecellview

How to make a drag & drop for NSTableCellView like this


I'm trying to implement a drag & drop for NSTableCellView look like screenshot, but the only thing i can do just the text, not a whole cell like screenshot bellow :(

enter image description here


Solution

  • Drag and Drop Programming

    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.

    See Custom drag image with NSTableView as drag source