• 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
Hot can I get called when my view scrolls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Hot can I get called when my view scrolls?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: WebView Crashed
  • Next by Date: Re: Hot can I get called when my view scrolls?
  • Previous by thread: Re: WebView Crashed
  • Next by thread: Re: Hot can I get called when my view scrolls?
  • Index(es):
    • Date
    • Thread