• 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: Stop NSScrollView from catching scroll events.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stop NSScrollView from catching scroll events.


  • Subject: Re: Stop NSScrollView from catching scroll events.
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 23 Mar 2009 14:47:07 -0700


On Mar 23, 2009, at 2:35 PM, Ben Lachman wrote:

On Mar 23, 2009, at 10:54 AM, Michael Ash wrote:

On Mon, Mar 23, 2009 at 3:46 AM, Ben Lachman <email@hidden> wrote:
I have a tableview that's neatly wrapped in a scroll view by IB. I manually
resize the scrollview whenever a row is added to the tableview so that all
the row are always visible. Thus I basically don't need a scroll view.
However even though it can't actually scroll the tableview it still eats
scroll events when the mouse is over it. I tried ripping the tableview out
of the scroll view programatically, but that didn't yield useable results.
Is there a straight forward way to have a scroll view pass scroll events on
up the responder chain?

Just subclass NSScrollView, and override -scrollWheel: to call directly through to NSResponder's implementation and bypass NSScrollView's implementation.

I was thinking this was easy, but now I'm not so sure.

How do you call through to some arbitrary class in a class's inheritance chain?

It's definitely the way to do it.

Just send it on to [self nextResponder]. that's all!

corbin


_______________________________________________

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: Stop NSScrollView from catching scroll events.
      • From: Ben Lachman <email@hidden>
References: 
 >Stop NSScrollView from catching scroll events. (From: Ben Lachman <email@hidden>)
 >Re: Stop NSScrollView from catching scroll events. (From: Michael Ash <email@hidden>)
 >Re: Stop NSScrollView from catching scroll events. (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Stop NSScrollView from catching scroll events.
  • Next by Date: Re: NSPredicate with non-string keys
  • Previous by thread: Re: Stop NSScrollView from catching scroll events.
  • Next by thread: Re: Stop NSScrollView from catching scroll events.
  • Index(es):
    • Date
    • Thread