So I have a CPTableView
with 2 columns
. My CPTableView
is filled thanks to an Array Controller
which is bind with the CPTableView
Columns.
I know how to fill, refill the table view, no problem.
My problem is that I want to change the value of a cell and of course, this value must be changed in the array controller, too.
So I enter my new value by double clicking on the cell, enter it. Ok, but the value isn't changed in the array and it's normal because I didn't tell to the array to do it.
But to change the value in the array, I must be able to get the new value that I wrote in the cell to put in the array.
I can't do this or I don't know how to do this.
I tried the CPTableColumn method : dataCellForRow
but it doesn't work, the debugger tells me to use dataViewForRow
. Ok, I use it, but when I get the cell value, it always return : "Text Cell" the default title set for the cell in IB.
So really I don't know how to do what I want.