Subject: Re: Scroll view within scroll view blocks
scrolling



Figured out a super easy solution for this. Override scrollWheel: in an
NSScrollView subclass:

- (void)scrollWheel:(NSEvent *)theEvent
{
[super scrollWheel:theEvent];
[[self nextResponder] scrollWheel:theEvent];
}

Works great :-)

On 2011-04-28, at 6:53 PM, Kyle Sluder wrote:

> On Thu, Apr 28, 2011 at 5:07 PM, Indragie Karunaratne
> <cocoadev@xxxxxxxxxxxx> wrote:
>> I have resized all my text views so that all the content is visible without
>> vertical scrolling, and I have disabled the vertical scroller on its scroll
>> view. I would remove it from the scroll view entirely and avoid this issue,
>> but I still need the text view's scroll view to horizontally scroll text.
>> Would I be able to subclass the text view's scroll view to pass scroll
>> events to the parent scroll view?
>
> Why not just let the outer scroll view also scroll horizontally?
>
> --Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

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:
http://lists.apple.com/mailman/options/cocoa-dev/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

...



Privacy