Xcode 7, Swift 2, Mac OS X application.
I have a Storyboard with the following simple structure; WindowController containing a SplitViewController. Top panel of Split View contains a ViewController which contains a Table View. Bottom panel of Split View contains a Text Field.
My Table View is bound to an Entity in my data model using an Array Controller TableViewArrayController). The TableViewArrayController has been added to the Table View's containing View Controller. The Table View displays my data fine.
I added a second Array Controller (TextFieldArrayController) to the Split View bottom panel View Controller and bound it to the same Model Object Context as TableViewArrayController. I bound the Text Field to the TextFieldArrayController. The Text Field displays the first item in the data model but the TextFieldArrayController is not synchronising its selected property with the TableViewArrayController.
This appears to be a very simple setup and I would expect it to be not uncommon to want to display an item from the selected row in a Table View in an object which is within a different ViewController. No matter what I try I cannot make the Text Field display a property from the selected row.
If I add a Text Field to the Table View's ViewController and bind it to the same Array Controller it displays and allows me to edit a property of the selected row fine.
Can anyone suggest how I should bind a Text Field in one View Controller to the selected row of a Table View situated within a different View Controller?