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.
NSTableView
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.
- (NSInteger)clickedRow
You do not need to subclass NSTableView for this solution. clickedRow is also available on NSOutlineView.
clickedRow
NSOutlineView
2.1m questions
2.1m answers
60 comments
57.0k users