On Thu, Jul 29, 2010 at 4:26 PM, Tony Romano <[email protected]> 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 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]
