• 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: display artifacts around cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display artifacts around cells


  • Subject: Re: display artifacts around cells
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 5 Apr 2008 14:49:23 -0700


On 2008 Apr, 05, at 6:25, Aaron Wallis wrote:
I seem to be having some issues with display artifacts in a new app i'm working on.

I've got a NSView (which renders within a transparent window) and when you interact with the controls within the view you get little corners popping up here and there.

I'm quite new to drawing things in Cocoa, normally i'd do it all through IB, so this is a new one to me.

This may be wrong, but, from one amateur Cocoa draw-er to another, I'd advise that stuff like this often happens when views get drawn out of order. In this case it looks like maybe you sent that button a - drawRect message behind the back of its superview. The button doesn't know what lies outside its rounded corners. In general, when necessary to refresh a view, send -setNeedsDisplay or setNeedsDisplayInRect: to the window's contentView.


_______________________________________________

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: 
 >display artifacts around cells (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: NSTreeController / CoreData still broken in 10.5?
  • Next by Date: Custom Buttons - Tutorial/Examples...
  • Previous by thread: display artifacts around cells
  • Next by thread: unexpected outlineView:setObjectValue:forTableColumn:byItem: messages
  • Index(es):
    • Date
    • Thread