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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]