For left-clicks, there is the "action" event handler hook. For double-clicks, there is "doubleAction". For right-clicks, there is ... nothing ?
I'm trying to reassure myself that I haven't done enough research yet, but did the Apple developers conveniently forget to write a simple detection mechanism for an NSTableView right click that gives me the row/column that was clicked ? Or did they just think it would be funny ?
There is NSTableViewDelegate.tableView(...didClick...), but that doesn't even get triggered by my clicks (left or right).
There is NSTableView.clickedRow, but that is almost no good, because I have to call that myself after the fact. I want to receive the notification, as soon as the click is performed, that "Hey, you right-clicked the table view, and here is the row you right-clicked."
From the research I have done, it looks like implementing the low-level rightMouseDown() event, and figuring out the row from X/Y co-ordinates is what I have to do ? And I tried doing that, with some really weird results. If this is what I have to do, it is a cruel joke.
Am I out of luck ?
I'm trying to reassure myself that I haven't done enough research yet, but did the Apple developers conveniently forget to write a simple detection mechanism for an NSTableView right click that gives me the row/column that was clicked ? Or did they just think it would be funny ?
There is NSTableViewDelegate.tableView(...didClick...), but that doesn't even get triggered by my clicks (left or right).
There is NSTableView.clickedRow, but that is almost no good, because I have to call that myself after the fact. I want to receive the notification, as soon as the click is performed, that "Hey, you right-clicked the table view, and here is the row you right-clicked."
From the research I have done, it looks like implementing the low-level rightMouseDown() event, and figuring out the row from X/Y co-ordinates is what I have to do ? And I tried doing that, with some really weird results. If this is what I have to do, it is a cruel joke.
Am I out of luck ?