Re: redraw problem
Re: redraw problem
- Subject: Re: redraw problem
- From: Michael Ash <email@hidden>
- Date: Fri, 30 Jul 2010 00:19:52 -0400
On Thu, Jul 29, 2010 at 4:26 PM, Tony Romano <email@hidden> wrote:
> I have a document based Cocoa App and I am trying to understand what is causing these residual lines to happen. Attached is a link to what I am referring to. The solid blue lines are the new lines after they have moved. The greyish lines are what's being left behind. http://dl.dropbox.com/u/5614061/Screen shot 2010-07-29 at 1.08.36 PM.png. Notice they look like borders from the old lines.
It looks like you're changing the filled region of an
irregularly-shaped window. This is perfectly fine, but note that
NSWindow will *not* automatically update the window's shadow when you
do so. Your artifacts look like leftover shadow to me, so I'd guess
that this is what's happening.
If I'm right, you can simply do [window invalidateShadow] any time you
change the filled region to force the window to regenerate the shadow.
Mike
_______________________________________________
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