Re: Drawing over a transparent background
Re: Drawing over a transparent background
- Subject: Re: Drawing over a transparent background
- From: Ron Fleckner <email@hidden>
- Date: Tue, 1 Sep 2009 22:23:39 +1000
On 01/09/2009, at 8:36 PM, Dave Keck wrote:
I believe you need to tell the window to invalidate its shadow. The
end of ClockView's drawRect: is a bad place to do it, but as a proof
of concept:
- (void)drawRect: (NSRect)rect
{
... lots of drawing code ...
[[self window] invalidateShadow];
}
Yes, that's it. Thanks so much. Sorry that I didn't find that myself.
I see that the end of drawRect: is indeed a bad place to do it. The
app's CPU % use jumps from ~1% to 2%~3%. I'll have a play/think about
where to do it. Maybe in the custom window class or the app delegate.
Ron
_______________________________________________
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