I'm looking for a way to get right-clicked row index from NSTableView
but I can't find any delegate methods or class attributes for it. Any suggestion is appreciated.
I'm looking for a way to get right-clicked row index from NSTableView
but I can't find any delegate methods or class attributes for it. Any suggestion is appreciated.
Use the NSTableView method - (NSInteger)clickedRow
to get the index of the last clicked row. The returned NSInteger will be the index of the right clicked row.
You do not need to subclass NSTableView
for this solution. clickedRow
is also available on NSOutlineView
.