• 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
Re: NSButton drawing glitch [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton drawing glitch [SOLVED]


  • Subject: Re: NSButton drawing glitch [SOLVED]
  • From: Steve Israelson <email@hidden>
  • Date: Thu, 17 Jan 2008 22:26:40 -0800

Ahh. Its my own fault!  Isn't it always?
The custom box code was using the dirty rect as its drawing bounds.
Changing that to [self bounds] fixed it.


On 15-Jan-08, at 1:00 PM, Steve Israelson wrote:

I have a custom view that draw a rounded corner rectangle.
This view is NOT opaque.
Embedded within this view is a standard push button.

I have my NSWindow background color set to [NSColor redColor] so I can see what is being drawn.

The NSButton, when clicked, always shows little rounded off corners in red, ie the window bg color.
It looks like somehow the NSButton is NOT letting any of its subviews draw, but just in those corners.
The corners are NOT related to the button visual representation in any way that I can tell.


I can not find any way to make it stop, except to make my view opaque. Doing so of course messes up MY rendering of rounded corners.

Does anyone know how to make the NSButton behave?

I suppose I can nest an opaque content view inside my view, but that won't work if I use a fill color with an alpha value.


_______________________________________________

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


References: 
 >NSButton drawing glitch (From: Steve Israelson <email@hidden>)

  • Prev by Date: Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
  • Next by Date: Re: Problem when inheriting settings in xcconfig files
  • Previous by thread: NSButton drawing glitch
  • Next by thread: ToolTips in Leopard - Second Posting
  • Index(es):
    • Date
    • Thread