Re: deactivating an NSScrollView
Re: deactivating an NSScrollView
- Subject: Re: deactivating an NSScrollView
- From: Shawn Erickson <email@hidden>
- Date: Sat, 9 Apr 2005 10:12:50 -0700
On Apr 8, 2005, at 8:57 AM, Geoff Levner wrote:
Can any Cocoa gurus out there tell me if there is a simple way to
"deactivate" an NSScrollView, that is, to make it behave as if the
document view were attached directly to the NSScrollView's superview?
Our application displays a PDF image in a scrolled view, but sometimes
we would like for the image to resize itself to fill the view rather
than scrolling....
NSScrollView has the ability to automatically turn the scroll controls
off if they sense that the document view has a size in relation to the
content view that doesn't require the scroll controls. I believe it
should be as easy as resizing you document (possibly adding it again to
the scroll view) and having automatic scrolling turned on (or
explicitly turning them off).
Review NSScrollView's setHasHorizontalScroller:,
setHasVerticalScroller:, and setAutohidesScrollers: methods.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden