Re: Large over 100K pixel high ruler scroll view
Re: Large over 100K pixel high ruler scroll view
- Subject: Re: Large over 100K pixel high ruler scroll view
- From: Graham Cox <email@hidden>
- Date: Wed, 24 Aug 2011 10:33:17 +1000
On 24/08/2011, at 10:21 AM, Graham Cox wrote:
> I'm not sure about the 10,000 pixel limit - I've never run into it. But I believe that pertains to the view's frame, not its bounds.
> Note that when you zoom a view, the frame and the bounds have a further difference, which not only describes the scroll offset, but the scale factor as well. A highly zoomed-in view vastly exceeds the 10,000 pixel limit, yet works just fine.
I should correct this - Jens is right, the frame can exceed 10,000 pixels if you set it programatically, because it's clipped by the NSClipView within the NSScrollView.
If the frame and bounds of the content view are the same, the view's scale is 1:1. For zooming, these rectangles change in proportion. The scroll offset is nothing to do with the frame/bounds of the content view itself, but is a function of the scrollview and its clipview. Sorry for the confusion.
But the thrust of what I said should work - set it all up in IB with some arbitrary size, then set the real size when the view is loaded.
--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