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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to