Re: Overlay view drawing woes
Re: Overlay view drawing woes
- Subject: Re: Overlay view drawing woes
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 10 Aug 2007 14:16:55 -0700
Hi, Greg,
Sibling views are not officially supported in currently-shipping
versions of Mac OS X. More specifically, clipping is not enforced
among such views. Thus the redrawing underneath your overlay is
likely to end up with drawing artifacts.
I would definitely suggest finding a way to do this using subviews,
rather than sibling views.
Cheers,
Andrew
On Aug 10, 2007, at 1:32 PM, Greg Hoover wrote:
I'm using NSViewAnimation to slide an overlay view into place based
on some user interaction and it works great. The problem is that
views under this overlay are being redrawn and it makes the overlay
view look pretty bad. In some cases I've been able to fix this by
immediately changing the firstResponder to the new view, but in
some cases this isn't working. For instance, I have a button that
triggers this view to slide in and the button ends up underneath
the view, but is redrawn even after the view slides in so the
result is that there's a whole in the overlay view where the button
icon is drawn.
Any advice would be much appreciated.
Greg_______________________________________________
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
_______________________________________________
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