Re: Redrawing a superview from another view's -drawRect: method
Re: Redrawing a superview from another view's -drawRect: method
- Subject: Re: Redrawing a superview from another view's -drawRect: method
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 2 May 2005 08:10:23 -0600
On May 2, 2005, at 7:55 AM, Ricky Sharp wrote:
In your case, it sounds like the other view is a sibling view? If
that's the case, why not do the right thing in your controller layer?
It's not that easy. The sibling view creates an NSImageView with an
image, removes a previous NSImageView if one exists, and adds the new
view as a subview to one of the sibling view's superviews, all during
draw time. The redraw problem occurs after removing the NSImageView
and adding a new one; the NSImageView's superview must be redrawn in
order to clean up after the removed NSImageView. In Panther this
worked fine; in Tiger I can't get the superview to redraw when
necessary without making it redraw constantly. That's why I'm
wondering if there's a way to get the Panther view redrawing back...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden