how do you change the highlight color for rows in an NSOutlineView?
how do you change the highlight color for rows in an NSOutlineView?
- Subject: how do you change the highlight color for rows in an NSOutlineView?
- From: Mike Morton <email@hidden>
- Date: Wed, 1 Jun 2005 15:01:59 -0400
Our product has an outline with white text on a dark background, and the default highlight color for a non-key outline makes it hard to read the text, so we’d like to change the color.
I can override NSCell's
highlightColorWithFrame:inView: to return the correct color, but:
(1) The cell doesn’t draw in the outline’s intercell spacing, so we get gaps unless we set the spacing to zero. Is there a better solution?
(2) More importantly, the cell used to draw the outline doesn't get my override. Debugging, it looks like an NSButtonCell, so I tried override-and-pose-as on NSButtonCell to make the highlight happen there -- nothing changes. Are there really two cells for the one outline column? If so, can I substitute my own class for the cell which draws the outline?
Thanks in advance,
-- Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden