On 18/05/2011, at 6:31 PM, Nava Carmon wrote: > 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?
Try setting the bounds to match the frame [NSView setBounds:]. It's the bounds that the scroll view is looking at. If the frame and bounds don't agree, you'll get scaling within the view, which is probably not what you want unless you are deliberately implementing zooming of the view. --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]
