Toggle row selection using checkbox

  • Hello,
    I'm using a NSArrayController as the delegate and datasource for aNSTableView. In my table view I would like to use a checkbox in my first column to toggle the row selection.

    I have been searching thought the docs and I must be using the wrong terminology or something. Does anyone have an example on how to do this or what the right notification method I need to be using?

    Thanks,
    Charlie
  • You would just have another column with another property to bind or set to
    if you want to use a check box.  The selection provided by NSTableView is
    different, and you'd ignore the other methods of marking a selection.
    --
    Gary L. Wade
    http://www.garywade.com/

    On 7/4/2012 11:47 AM, "Heizer, Charles" <heizer1...> wrote:

    > Hello,
    > I'm using a NSArrayController as the delegate and datasource for
    > aNSTableView. In my table view I would like to use a checkbox in my first
    > column to toggle the row selection.
    >
    > I have been searching thought the docs and I must be using the wrong
    > terminology or something. Does anyone have an example on how to do this
    > or what the right notification method I need to be using?
    >
    > Thanks,
    > Charlie
previous month july 2012 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today