Disable automatic row selection after filling NSTableView
I have two NSTableViews filled with underlying data that are linked using bindings. When a row is selected in NSTableView1, NSTableView2 is populated and the first row is selected. I have registered an NSArrayController that matches NSTableView2 with KVO on its selectIndex. This means that when a row is selected in NSTableView2, the method runs. My problem is that when a row is selected in NSTableView1 then the first row in NSTableView2 is selected, starting the method. I'd like to be able to select a row in NSTableView1 and populate NSTableView2 without having a row automatically selected in NSTableView2. How is this achieved?
+1
a source to share
