Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
- Subject: Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
- From: Gordon Apple <email@hidden>
- Date: Wed, 23 Jul 2008 13:47:54 -0500
- Thread-topic: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
You can look at the Sketch sample code for one way. You can lift
SKTZoomingScrollView intact, although you may need to implement your own
controller to extract related code from the Sketch document class. However,
I have still to get it to work properly when using CALayers. Sketch scales
the bounds of the clip view. If you are not using layers, you don't even
have to use a transform.
On 7/23/08 1:05 PM, "email@hidden"
<email@hidden> wrote:
> What attribute of the contained views does NSScrollView (or the
> NSScroller, whatever) use to determine what the scroll bars look like?
> I read the doc a couple times, but I couldn't quite figure it out. Is
> it the bounds.size of my contained view? What if I'm setting a
> CoreGraphics CTM to zoom in on my drawing (my drawing code is all done
> using the CoreGraphics API)...I would want the extent of the
> scrollable area to grow accordingly...what attribute do I change?
>
> Thanks!
_______________________________________________
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