in my application, I made a very simple binding. I have an NSMutableArray associated with an NSArrayController. The controller itself is connected to the ComboBox, and it displays the entire contents of NSMutableArray. It works great.
The problem is this: the contents of the array will change. If the user made some changes to the application, I delete all the elements in the NSMuteableArray and fill it with new and different elements.
But the binding of NSMutableArray β NSArrayController β NSComboBox is not updated.
Regardless of whether I delete all objects from the array, the ComboBox still shows the same elements.
What is wrong here? Is my approach wrong or do I only need to specify a binding in order to update myself? I did not know how to do this.
source
share