Re: deactivating an NSScrollView
Re: deactivating an NSScrollView
- Subject: Re: deactivating an NSScrollView
- From: Geoff Levner <email@hidden>
- Date: Sat, 9 Apr 2005 22:08:42 +0200
The NSImageView is configured to automatically resize. In fact, if I add it directly to the superview, bypassing the scroll view, I get pretty much the desired behavior. But I would like to avoid having to rearrange my view hierarchy to switch between these two modes. Presumably NSScrollView is set up *not* to resize the document view, which is the behavior one would usually expect. What I would like to know is, is there a way to configure NSScrollView so that it *does* resize the document view...
Geoff
On 9 Apr 2005, at 19:14,
アンドレ(Andre
) wrote:
Well, is your scrollview set to automatically resize?
If so, then is the subview set to scale larger or static with its superview?
Autosizeing and setting the min size should be enough, it should scale with the scrollview as it expands.
If you want to toggle this off and on, then you'll have to set those behaviors explicitly in code.
Andre
On 平成 17/04/09, at 9:45, Geoff Levner wrote:
Sorry to insist, but I am not sure how to interpret the resounding silence in response to my question. Is this a stupid question? Or is the only solution to rearrange the view hierarchy when switching between scroll and zoom-to-fit modes?
Apologies to all if my first interpretation is correct (I asked a stupid question)...
Geoff
On 8 Apr 2005, at 17:57, I 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....
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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