Hi,
I am subclassing NSTextAttachmentCell
and it works very good so far. The problem is to highlight the cell in a different color when the cell is selected or highlighted.
The documentation of NSTextAttachmentCell
points to the method highlight:withFrame:inView:
. But this method is never called. Any idea?
As a workaround I'm overriding trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:
and setting the highlighted flag myself. However, I don't think that this is the solution.