• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scroll view within scroll view blocks scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroll view within scroll view blocks scrolling


  • Subject: Re: Scroll view within scroll view blocks scrolling
  • From: Indragie Karunaratne <email@hidden>
  • Date: Thu, 28 Apr 2011 18:07:40 -0600

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?

On 2011-04-28, at 5:37 PM, Michael Dautermann wrote:

>
> On Apr 28, 2011, at 7:12 PM, Indragie Karunaratne wrote:
>
>> Despite the confusing title, I'm sure this is an issue that someone else has run into before. I have a parent scroll view that houses a bunch of subviews, including an NSTextView (and its own scroll view). The problem is that if I try to scroll vertically through the parent view, the text view's scroll view "blocks" my scrolling if I try to scroll while the cursor is within the text view. How can this be avoided?
>>
>
> Scroll views within scroll views seem like potentially VERY confusing UI's for end users.  I can't think of any major shipping apps that have scrolling NSTextViews contained within a parent NSScrollView. Wouldn't it be possible to try to simplify the user interface?
>
> But if you insist on going this route, I believe one way of solving your problem would be to detect where the event is happening, and if it's happening in the sub-scrollview.. have the parent scrollview resign first responder so events can flow through to hit the sub-scrollview.  When the mouse exits the subscrollview, re-enable (or becomeFirstResponder) the parent scrollview.  I'm not certain that this is right solution or not, but at least this might help give you some good hints.
>
>
>
>
>

_______________________________________________

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

  • Follow-Ups:
    • Re: Scroll view within scroll view blocks scrolling
      • From: Kyle Sluder <email@hidden>
    • Re: Scroll view within scroll view blocks scrolling
      • From: Michael Dautermann <email@hidden>
References: 
 >Scroll view within scroll view blocks scrolling (From: Indragie Karunaratne <email@hidden>)
 >Re: Scroll view within scroll view blocks scrolling (From: Michael Dautermann <email@hidden>)

  • Prev by Date: Re: Scroll view within scroll view blocks scrolling
  • Next by Date: Re: Scroll view within scroll view blocks scrolling
  • Previous by thread: Re: Scroll view within scroll view blocks scrolling
  • Next by thread: Re: Scroll view within scroll view blocks scrolling
  • Index(es):
    • Date
    • Thread