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
1.4m articles
1.4m replys
5 comments
57.0k users