Re: Panning a View
Re: Panning a View
- Subject: Re: Panning a View
- From: David Blanton <email@hidden>
- Date: Tue, 28 Jul 2009 11:23:30 -0600
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Works great.
Thanks!
On Jul 28, 2009, at 10:01 AM, Graham Cox wrote:
On 29/07/2009, at 1:56 AM, David Blanton wrote:
Is this the correct approach:
In the MyDocument.xib add a scroll view to the window.
At some place in the app instance a view and set this view as the
document view of the scroll view.
Draw into this view.
Scrollers will update etc.
Add the view to the nib, Use Layout -> Embed Objects In -> Scroll
View.
Make the size (frame) of the view bigger than the scrollview and the
view will scroll.
--Graham
_______________________________________________
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