Re: how do you change the highlight color for rows in an NSOutlineView?
Re: how do you change the highlight color for rows in an NSOutlineView?
- Subject: Re: how do you change the highlight color for rows in an NSOutlineView?
- From: Corbin Dunn <email@hidden>
- Date: Fri, 3 Jun 2005 10:14:52 -0700
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?
Maybe override -frameOfCellAtColumn:row: (from NSTableView) to be
one pixel bigger?
- (void)highlightSelectionInClipRect:(NSRect)rect
Should be the one (in NSTableView) -- fill it in with the correct
highlight color.
...so maybe you'd have better luck overriding that? Also, you
could try -[NSTableColumn setDataCell:] instead of posing.
I think this is the best bet. Posing should be the last thing to do.
-corbin _______________________________________________
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