• 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: Michael Dautermann <email@hidden>
  • Date: Thu, 28 Apr 2011 19:37:12 -0400

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: Indragie Karunaratne <email@hidden>
    • Re: Scroll view within scroll view blocks scrolling
      • From: Quincey Morris <email@hidden>
References: 
 >Scroll view within scroll view blocks scrolling (From: Indragie Karunaratne <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