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: j o a r <email@hidden>
- Date: Mon, 2 May 2005 16:34:25 +0200
On 2005-05-02, at 16.28, Nick Zitzmann wrote:
Why are you doing this inside drawRect? That seems a bit weird to me.
The view must be able to draw something outside of its own frame
without actually expanding that frame, _and_ must be drawn over the
top of several neighboring views, and so it uses NSImageView to
accomplish this.
Find some other way to solve this problem. Are you always drawing
"outside" of your view frame? If so, make the frame of the view larger
from the start. If not, resize the view when you receive the event that
triggered the change. Don't use the drawing methods as the event to
trigger these changes.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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