Reputation: 3031
I want to press a button, and have a specific box in my NSTableView change its value to something else. Is that possible? How can I do this?
Upvotes: 0
Views: 208
Reputation: 17208
Change the model.
That is, get the object you want to change from your array controller, and then modify its attributes.
If you're using a binding, the table will automatically reload the changed cell. If you're using the table view data source methods, just ask the table view to reload the changed cell using -reloadDataForRowIndexes:columnIndexes:
.
Upvotes: 1