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: Shawn Erickson <email@hidden>
- Date: Mon, 2 May 2005 08:44:01 -0700
On May 2, 2005, at 7:34 AM, j o a r wrote:
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.
...or overlay a window and draw into that while it is doing this out
of frame drawing operation. This way your drawing could even extend
outside the window that contains your view.
<http://developer.apple.com/samplecode/FunkyOverlayWindow/
FunkyOverlayWindow.html>
-Shawn
_______________________________________________
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