What I basically trying to achieve is to change the formatting of a cell in a table to blank it out if the cell is not enabled.
To define whether a cell in a table column is enabled I've bound using the enabled binding and this is working fine, enabling the cells in some rows of the table and not in others. I have defined a sub-class of NSTextFieldCell that I am using to change the format of the cell. This also appears to be working fine, but I am having trouble triggering the change depending on whether the cell in the table is enabled. Originally I tried to activate the switch by calling [self isEnabled] on the cell. This worked but the switch never activated, which I assume is because the original binding defining whether a cell is enabled was to the table column rather than to the cell.
Does anyone have a method to easily achieve this. The only method I have noticed would be to sub-class the NSTableColumn and write a custom version of dataCellForRow: but this somehow doesn't seem like the best way to solve this problem.