On Tue, 30 Aug 2016 21:03:20 -0500, Ken Thomases said: >On Aug 30, 2016, at 10:10 AM, Sean McBride <s...@rogue-research.com> wrote: >> >> I have a drawing bug in my app, and reduced it to a toy app. >Basically, I create an NSBorderlessWindowMask type window who's content >view draws a translucent rounded rect. Its only subview is an >NSTextField that draws a number in a big font. When I display the >window, all is well. But when I change the textfield text, or even >simply remove the textfield, its old string half remains in a ghostly >outline. This works in 10.9 and 10.10, but is buggy in 10.11 and >10.12. I figure it's an OS bug, but maybe the description rings any >bells for anyone? > >Does the window have a shadow? Are you invalidating the shadow whenever >the content gets redrawn (since the shadow of a partially-transparent >window depend on exactly what was drawn non-transparently)?
Ken, That was exactly it, thanks! A call to invalidateShadow did it! Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com