Re: Panning a View
Re: Panning a View
- Subject: Re: Panning a View
- From: David Blanton <email@hidden>
- Date: Tue, 28 Jul 2009 12:39:31 -0600
I am changing now ... thanks!
On Jul 28, 2009, at 12:10 PM, Erik Buck wrote:
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Don't do that. Do read the documentation. The only thing you
should do in -drawRect: is draw. In particular, changing the frame
inside drawRect: will invalidate all or part of the calculations
performed by the framework in -display and other view drawing
methods that are called before and after -drawRect:.
_______________________________________________
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