1

I need to check a checkbox column field when a row in my NSTableView has been selected.

How do I detect when a row or multiple rows are selected in my NSTableView ?

thanks

aneuryzm
  • 63,052
  • 100
  • 273
  • 488
  • 1
    I would advise that you expand your question because you're not providing enough information for anyone to realistically help you. This usually leads to a protracted and frustrating round of requests in the comments for more information by other users who **really do want to help you**. For example, include in the question: code snippets/samples, the API you're using, stack traces, screen shots etc. When you've done this, flag to have your question re-opened. Please also take the time to [read this](http://tinyurl.com/so-hints). Thanks. – Kev Nov 20 '11 at 17:38

1 Answers1

4

Use notification NSTableViewSelectionIsChangingNotification. whenever this notification comes in your application performclick on checkbox.
create and connect -(IBAction)checkBoxMethod :(id)sender method to check box and write your code in that function.
CheckBox in tableview
How to click a checkbox in nstableview and update an object using KVC?
NSTableView with Checkbox Cell

Community
  • 1
  • 1
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144