My environment is as follows:
- Xcode 11/12
- swift 5
- macOS app
I want to select the row when the right click mouse button is clicked.
I have the following code with in a right click action function
@objc NSIndexSet *indexSet = [NSIndexSet indexSetWithIndex:row] tableView.selectRowIndexes(indexSet: IndexSet, byExtendingSelection:NO)
The first line with "@objc" gets "expected expression error". What am I doing wrong with this code?