• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Source List groups shifted down in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Source List groups shifted down in NSOutlineView
      • From: Jeff Wilcox <email@hidden>
References: 
 >Source List groups shifted down in NSOutlineView (From: Jeff Wilcox <email@hidden>)

  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Re: Obtaining rotation from CTM
  • Previous by thread: Source List groups shifted down in NSOutlineView
  • Next by thread: Re: Source List groups shifted down in NSOutlineView
  • Index(es):
    • Date
    • Thread