Re: How to fill rectangle under vertical scroller?
Re: How to fill rectangle under vertical scroller?
- Subject: Re: How to fill rectangle under vertical scroller?
- From: Chris Suter <email@hidden>
- Date: Mon, 22 Jun 2009 19:34:22 +1000
Hi Quincey,
On Mon, Jun 22, 2009 at 2:33 PM, Quincey
Morris<email@hidden> wrote:
> FWIW, the small "gotcha" in the sample code you linked to (AFAICT, since I
> never tried it) is that it places the "placard" in the area normally
> occupied by a scroll bar. The corner rect that the OP wants to draw is
> slightly different, in that the NSScrollView deliberately draws white in
> that corner, unless it's set to not draw a background at all. That means the
> linked-to code may not be quite complete -- it may also be necessary to
> ensure that the custom corner view draws above and/or after the scroll view,
> or else it may get painted over.
Subviews are always drawn after the parent (for obvious reasons if you
think about it), so if I correctly understand the point you're trying
to make, there won't be a problem.
Regards,
Chris
_______________________________________________
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