Re: Drawing over a view's subviews
Re: Drawing over a view's subviews
- Subject: Re: Drawing over a view's subviews
- From: John Stiles <email@hidden>
- Date: Wed, 15 Jun 2005 13:44:07 -0700
On Jun 15, 2005, at 12:48 PM, Scott Thompson wrote:
On Jun 15, 2005, at 11:36 AM, Mark Morrill wrote:
On 15-Jun-05, at 10:12, glenn andreas wrote:
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...
This method looks good.
The overlay window is an interesting option as is the non-opaque
overlay view. But I think those options might have too much
overhead. (sorry, couldn't resist.)
Thanks all :)
BTW, this same issue comes up every couple of months or so on this
list. While you're at it, you might report a bug to apple
(bugreport.apple.com) asking that an "official" way to do this be
added to the API.
Out of curiosity, why would the overlay window approach have too much
overhead?
It ought to be composited on the GPU so it's not going to waste a lot
of CPU cycles (well, technically, when it's first created the CPU
needs to allocate a back buffer etc).
_______________________________________________
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