Re: display artifacts around cells
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