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: George Lawrence Storm <email@hidden>
- Date: Tue, 5 Oct 2004 09:59:35 -0700
On Oct 5, 2004, at 4:30 AM, Ricky Sharp wrote:
< Deleted >
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?
< Deleted >
I feel it is much simpler, I now have a single custom view (direct
descendent of NSView) which is part of my library. That view has only
two methods, one of which is my drawPostRect:. I now simply inherit
from it when I create my main view, or can use it as is and create sub
views directly in it.
I appreciate your earlier response and did look through the source.
Although I could have extracted the mouse and timer related stuff and
reduced the code it still would have been more code and in use it has
the side effect of my having to keep track of it from any program I use
it in. As it is now all I have to do is place it in my scroller, place
the view I print from (In my current application I do not print this
view) as its sub view.
The only time I pay any attention to it in my application is when I
resize my print view and then I simply make a resize call to my
superview.
-----
George Lawrence Storm
Macintosh Applications Development
Snohomish (Seattle), Washington
E-mail: <email@hidden>
_______________________________________________
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