Re: Drawing over a view's subviews
Re: Drawing over a view's subviews
- Subject: Re: Drawing over a view's subviews
- From: glenn andreas <email@hidden>
- Date: Wed, 15 Jun 2005 11:12:24 -0500
On Jun 15, 2005, at 10:56 AM, Mark Morrill wrote:
Hi all,
I've got a view with an arbitrary number of subviews. Some of the
subviews might be custom WebViews, for example. The application is
an authoring tool.
What I want to be able to do is to draw 'grab points' so that the
user can resize a subview.
If I draw inside the view, the subviews draw over top of what I
draw. I need to be able to draw after the subviews draw.
Where would I hook into the drawing process to do this?
Thanks,
The best official answer would be to use an overlay window, since
that would allow you to draw things like grab points that actually
extend beyond the edge of your view (since a point that is flush
against the edge of your view would want to draw the "handle" outset
from that point, which means it would go beyond the bounds of your
view).
You could also try overriding unlockFocus and do your drawing before
calling [super unlockFocus], which is easier to implement, but
doesn't allow the flexibility that a child window would...
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
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