How to customize NSTableView row drag and drop?

Currently, when I pull a string from an NSTableView, this is a translucent text in the string. Instead, I would like to show a translucent image representing this line.

How can I achieve this?

+4
source share
1 answer

I suggest overriding either -[NSTableView dragImageForRowsWithIndexes:tableColumns:event:offset:] (available with OS X 10.4) or the draggingImageComponents property of NSTableCellView (available with OS X 10.7 for new table-based table views).

+4
source

Source: https://habr.com/ru/post/1440550/


All Articles