Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bind the selection of the NSTableView to the NSArrayController

I just want to be able to use the the methods of the nsarraycontroller called remove: and add:

like image 690
lbrndnr Avatar asked Mar 23 '11 17:03

lbrndnr


1 Answers

  1. Select the NSTableView. If the inspector window's title shows Scroll View, you need to click the table view again to select it.
  2. In the bindings tab, connect the Selection Indexes binding to the Array Controller's selectionIndexes controller key. This is similar to binding the content to the array controller, except that you don't use the arrangedObjects key.
like image 178
ughoavgfhw Avatar answered Oct 21 '22 03:10

ughoavgfhw