I subclassed NSTextFieldCell to do custom drawing and highlighting. I am essentially making a table with cells similar to the one found in Lion Mail, but my code is targeting Snow Leopard. The problem that I'm running into is this:
The last step is where the problem occurs; the initially selected cell is not being redrawn even though it is no longer selected. The consequence is that the cell appears to be selected.
What do I have to do to signal that unselected cells must be marked as dirty?
Use the selector setNeedsDisplay:
.