I want to change the image used when I drag an item from a view- and datasource-based NSOutlineView, but can't seem to find a hook. I've tried modifying
- (void)dragImage:(NSImage *)anImage at:(NSPoint)viewLocation offset:(NSSize)initialOffset event:(NSEvent *)event pasteboard:(NSPasteboard *)pboard source:(id)sourceObj slideBack:(BOOL)slideFlag
in the rowViews, in the tableCellViews, and in a subclass of NSOutlineView itself, but to no avail.
Does anyone know where the default image (it's obviously taken from the tableCellView's image and textfield) is coming from?
It turns out that the image is obtained from NSTableCellView. So the hook is to override -(NSArray *)draggingImageComponents in a subclass of that.