NSTableView won't begin dragging rows if the mouseDown happens within the rect of an NSButtonCell.
Posted
by Joel Day
on Stack Overflow
See other posts from Stack Overflow
or by Joel Day
Published on 2010-03-09T01:30:10Z
Indexed on
2010/03/09
1:36 UTC
Read the original article
Hit count: 292
I currently have an odd case where I need to be able to reorder rows in an NSTableView, but the only column happens to be an NSButtonCell. I'm trying to see how I can override NSButtonCell's mouse tracking in order to get it to behave in a way so that the NSTableView will begin dragging the row, but am not having much luck.
Additional info that might affect the behavior: With this NSTableView, I am not allowing any rows to be selected, but I have forced mouse tracking to always occur for all cells. This is so that the button can still be clicked even though its row can never be selected.
Thanks!
© Stack Overflow or respective owner