Hi all,
I have been writing an application in which I have an NSArrayController binding an instance of NSMutableArray to a NSTableView. When I insert objects using the insert: action of the array controller, a new object appears in the table view as expected. However, I have another method which adds objects directly to the mutable array. The problem is when I do this the table view does not update until the insert: method is called again. I assume this is because I am bypassing the bindings layer.
Is there any way of accessing the array controllers insert: method programmatically? If not, how can I have the table view refresh itself when a new object is added to the mutable array?
Thanks for any help you can give, if you need any more detail just ask.
I have been writing an application in which I have an NSArrayController binding an instance of NSMutableArray to a NSTableView. When I insert objects using the insert: action of the array controller, a new object appears in the table view as expected. However, I have another method which adds objects directly to the mutable array. The problem is when I do this the table view does not update until the insert: method is called again. I assume this is because I am bypassing the bindings layer.
Is there any way of accessing the array controllers insert: method programmatically? If not, how can I have the table view refresh itself when a new object is added to the mutable array?
Thanks for any help you can give, if you need any more detail just ask.