• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drawing issue with translucent borderless NSWindow, initial content half stays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing issue with translucent borderless NSWindow, initial content half stays


  • Subject: Drawing issue with translucent borderless NSWindow, initial content half stays
  • From: Sean McBride <email@hidden>
  • Date: Tue, 30 Aug 2016 11:10:49 -0400
  • Organization: Rogue Research Inc.

Hi all,

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?  Code is here is someone cares to look...:

<https://www.rogue-research.com/BackgroundBug.zip>

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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


  • Follow-Ups:
    • Re: Drawing issue with translucent borderless NSWindow, initial content half stays
      • From: Sandor Szatmari <email@hidden>
    • Re: Drawing issue with translucent borderless NSWindow, initial content half stays
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Pixel-perfect migration from ATSUI to Core Text
  • Next by Date: Swift changes in Xcode 8
  • Previous by thread: Re: Toolbar hiding on rotation?
  • Next by thread: Re: Drawing issue with translucent borderless NSWindow, initial content half stays
  • Index(es):
    • Date
    • Thread