Changing document size of scrollview
Changing document size of scrollview
- Subject: Changing document size of scrollview
- From: Nava Carmon <email@hidden>
- Date: Wed, 18 May 2011 11:31:40 +0300
Hi,
I have a scroll view (NSScrollView) with a document view set as a NSView. This document view is a superview for 2 other views, which are supposed to be resized along with resizing of enclosing document view.
>From time to time I add drawing objects to document view. I need to calculate an enclosing rectangle of all objects and accordingly change the frame of my document view.
My question is when I change the frame of document view the enclosing scroll view has to adjust itself to the new frame size of document view.
What I see that scroll view doesn't adjust itself properly. Do I need to call some specific API to change its content size?
Thanks for advance
Nava
_______________________________________________
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