I have a NSTableView which has cells which can be edited, but when I change the text on them it just reverts back. What delegate call has the table view for making this changes? Couldn’t find anything 🙁
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, remember that the table view does not hold data. It just displays the data it gets from the datasource (which is your code).
When editing is complete, the table view will call its datasource (you) with the following method:
It is then your responsibility to update the model with this new value.
Afterwards, the tableview will ask the datasource for the value of this column and row. The datasource is responsible for responding with the correct value (the one you wrote back to the model above).