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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to