NSTableView Biding with NSArrayController Not Work for Storyboard Objective C

173 Views Asked by At

I follow guider from internet to binding NStableView use NSArrayController However seem it not work for me. Could you help. There're 3 problem: 1. Can't bind Content Array (you an see error (!)) 2. Can't bind Value (from NStableview) 3. Can I add object without use pushbutton.

enter image description here

enter image description here

1

There are 1 best solutions below

2
vadian On
  1. The content array binding seems to be correct.
  2. The table view binding is wrong.

    In the column select the Table View Cell (not Table Cell View!!) and bind the Value to Table Cell View > objectValue.<property> for example

    enter image description here

    Leave the Controller Key empty.

  3. Yes you can, use an IBOutlet for the array controller and use the NSArrayController API to add objects.