How to bind the selection of the NSTableView to the NSArrayController
Asked Answered
K

1

6

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

Kirk answered 23/3, 2011 at 17:47 Comment(0)
C
19
  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.
Clyster answered 24/3, 2011 at 0:14 Comment(1)
Hah, you're right. Don't no what i made yesterday. Now it works.Kirk

© 2022 - 2024 — McMap. All rights reserved.