I have an NSTableView that binds to an NSArrayController, which in turn binds to an object property that returns an NSMutableArray.
This array is listening for events in a separate part of the application and updates itself internally. The model object that owns an instance of the array does not make any changes to the array.
I know that the ArrayController is not able to respond to changes made to the Array directly. I undersand that the ArrayController is observing the model object for changes to the array. Since the model object in my case is not modifying the array - I would like to fake the notification calls that the ArrayController is listening for. But there is no documentation of these notifications, or what key value changes the ArrayController is listening for.
Does anyone know what notifications need to be sent so that the ArrayController updates itself ? Alternatively - are the debug flags or some other debugging trick I can use to identify what Key values the ArrayCotnroller is observing ?
Thanks,
Update: I have since found the solution to this issue. Adding a level of indirection between the underlying objects and the observed collection object, and implementing the KVO methods for indexed mutable accessors did the trick.