Hi guys,
I have a NSTableView, and each row is an object. By object I mean a class (called Option) that holds information about a certain row, like a few strings and a few BOOL's.
In my NSTableView, I have 2 columns, one column is set by Interface Builder as a NSButtonCell, and the other is just a normal cell.
As I was saying before, my NSTableView uses an object for each row that holds properties, one property is "isEnabled", which is a BOOL, and this is set by the method "setEnabled:".
Now, I am having trouble understanding how I would go about relating the NSButtonCell to the Object, so that when the button was enabled, the Object in the same row's method, "setEnabled:", would be set to YES, and when the button was disabled, the method would be set to NO.
Any help at all is appreciated :-)
Thanks,
Oliver