Hi all,
I have an NSArrayController, set up in the usual way with the arrangedObjects displayed in a TableView. When I click on a row in the table view, the object selected becomes the array controllers selected object. Fine.
However, I would like to be able to control the array controllers selection from an NSPopUpBox. I have been able to bind the Content and Content Objects of the pop up button to show the arranged objects of the array controller, and it picks up the names of the objects perfectly well (using a model key path of name). However, when I select an item in the pop up button, the array controller selection does not change as the binding is one way.
Does anyone know how to get a popup button to control the selection of the controller? Any help will be greatly appreciated.
I have an NSArrayController, set up in the usual way with the arrangedObjects displayed in a TableView. When I click on a row in the table view, the object selected becomes the array controllers selected object. Fine.
However, I would like to be able to control the array controllers selection from an NSPopUpBox. I have been able to bind the Content and Content Objects of the pop up button to show the arranged objects of the array controller, and it picks up the names of the objects perfectly well (using a model key path of name). However, when I select an item in the pop up button, the array controller selection does not change as the binding is one way.
Does anyone know how to get a popup button to control the selection of the controller? Any help will be greatly appreciated.