I have an object containing an NSMutableArray
called pointValue
and several methods including setPointValue
. When the latter method is invoked it triggers another method saveTable
which saves pointValue
to a file (its a csv but does matter not here as the save methods work).
I now have nib file which contains a NSTableView
and NSArrayController
which is connected to the array in the object.
With a button in the nib is pressed it triggers the NSArrayController
remove:
method, removing the selected item, accessing the setPointValue
which saves the new array.
This all works perfectly, my problem begins when I edit a cell in the table manually and press enter, the array is changed but setPointValue
is not triggered and thus the array is not saved to file.
I am absolutely god-smacked why setPointValue is not evoked. Do i have to bind the array control or the table columns to something?