Re: Getting called back when an NSScrollView is scrolled
Re: Getting called back when an NSScrollView is scrolled
- Subject: Re: Getting called back when an NSScrollView is scrolled
- From: John Stiles <email@hidden>
- Date: Mon, 28 Jan 2008 11:39:20 -0800
Hamish Allan wrote:
On Jan 28, 2008 6:17 PM, John Stiles <email@hidden> wrote:
It looks like this technique relies on bounds-changed notifications,
which is not quite the same thing as user-initiated scrolling.
Wouldn't you want the two views to stay synchronised when the bounds change?
Sure, but that is actually handled already. I think you're missing the
bigger point. I'm trying to implement a feature in shared code, which is
already spec'ed out and working on other platforms, for "call this
callback when the user scrolls the view." I can either punt and say
"sorry, the Mac can't do that," or I can implement it. I'd prefer to
implement as much as I can to keep as much code shared as possible.
Having as much functionality in shared code as possible reduces bugs
dramatically.
Certainly I think it's reasonable to want to know when the user is
scrolling a view.
Fortunately replacing the target/action and overriding -scrollWheel:
works like a charm. It's not ideal but it will have to do, unless
someone has a better idea :)
_______________________________________________
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