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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to