Hot can I get called when my view scrolls?
Hot can I get called when my view scrolls?
- Subject: Hot can I get called when my view scrolls?
- From: Carlos Eduardo Mello <email@hidden>
- Date: Thu, 07 Apr 2011 01:06:41 -0300
Hi,
I have a custom view embeded in a scroll view (let's call it View
A). I have another view (View B) which is related to View A (but not
inside it) and needs to be updated whenever view A scrolls. (Please
note that I don't have any problems with scrolling. Scrolling works
great in View A)
I know how to actively query the scroll view for scroller positions
( [ [ scrollView verticalScroller ] floatValue ] ), or for the clip
view position ( [ [ scrollView contentView] bounds ].origin; ), but
how do I act on continuous scrolling actions initiated by the user?
I figured this should be some kind of delegation pattern, but couldn't
find anything associated with delegates in the NSScrollView's or
related documentation! Do I need to use notifications? Subclass theNS
ScrollView or the NSScroller classes?
Any suggestions will be great.
Carlos.
_______________________________________________
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