Skip navigation.
 
mlRe: deactivating an NSScrollView
FROM : Geoff Levner
DATE : Sat Apr 09 22:08:42 2005

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, $B%"%s%I%l!J(BAndre$B!K(B 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 $BJ?@.(B 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_removed>)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>
>>
>>

>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlFwd: deactivating an NSScrollView ?????Andre? Apr 9, 19:14
mlRe: deactivating an NSScrollView Geoff Levner Apr 9, 22:08
mlRe: deactivating an NSScrollView ?????Andre? Apr 10, 01:12