Re: Equivelent to drawRect: for drawing after sub views are drawn
Re: Equivelent to drawRect: for drawing after sub views are drawn
- Subject: Re: Equivelent to drawRect: for drawing after sub views are drawn
- From: Ricky Sharp <email@hidden>
- Date: Tue, 05 Oct 2004 06:30:03 -0500
On Tuesday, October 05, 2004, at 02:16AM, George Lawrence Storm <email@hidden> wrote:
>
On Sep 29, 2004, at 11:28 PM, George Lawrence Storm wrote:
>
>
> I need to perform the equivalent to NSView's drawRect:, however I need
>
> it to be called AFTER its sub views are drawn.
>
>
>
> Is there a method I can override for such a purpose?
>
>
>
> I need to draw a transparent overlay & some guidelines which will
>
> overlap some of those sub views.
>
>
After receiving only one response which seemed a bit more involved than
>
I feel it should be I started to play around.
And what you're doing below isn't even more involved?
>
I viewed the stack calling my drawRect: and found it is being called
>
from _recursiveDisplayAllDirtyWithLockFocus:visRect:
>
Based on its position in the stack and its label I assume it sets up
>
its clip and focus, calls drawRect: then recursively calls its sub
>
views before returning.
>
>
I decided to live dangerously and overrode it as follows:
Working with private APIs should be avoided at all costs.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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