Re: Source List groups shifted down in NSOutlineView
Re: Source List groups shifted down in NSOutlineView
- Subject: Re: Source List groups shifted down in NSOutlineView
- From: Corbin Dunn <email@hidden>
- Date: Thu, 21 Aug 2008 08:39:25 -0700
On Aug 20, 2008, at 9:16 PM, Jeff Wilcox wrote:
I generally am pretty good at web mining or hacking solutions to
weird cocoa things, but this one has me a bit puzzled.
I want to use groups in an NSOutlineView that is set up with Source
List highlighting. However, I am also using horizontal grid lines,
and for some reason the drawing of the cell gets shifted down by a
few points for groups which looks really bad relative to the
horizontal grid lines.
Notes:
1. It doesn't happen for groups without Source List highlighting.
2. While the cell frame gets shifted, its not just the cell. The
background drawn with the highlighting gets the same shift down.
3. Its an absolute shift - independent of the row height.
The shift is to match the HI specification for how it should look.
Using grid lines is not part of the source list look, so it was never
designed to work well with it. You'll have to draw your own, in
drawBackgroundInClipRect:
corbin
Any ideas of how to get rid of this?
_______________________________________________
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden