I wonder how to make a NSTableView with a CheckBox Column, and when I checked a CheckBox, how to get the related row index. Thanks.
Here’s one way to do it:
- Drag a check box style button into the cell view
- Create an action on the window controller object (or document)
- Connect the target/action of the check box to that action method
- Use NSTableView’s rowForView(_
to request the row index for the sender (the button (view) in the cell view)
Hope this helps!
Perfect! It works! Thanks!