• 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
[NSView noob] How to be detect when a scroll view scrolls its document view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSView noob] How to be detect when a scroll view scrolls its document view


  • Subject: [NSView noob] How to be detect when a scroll view scrolls its document view
  • From: Stuart Malin <email@hidden>
  • Date: Tue, 31 Mar 2009 13:01:29 -1000

I have an NSScrollView with a document view that contains many subviews. I need to perform some processing on these views as they become visible or not visible because of scrolling of the ScrollView. I'm sure this must be straightforward to detect, but alas, I don't have a deep enough understanding of Views and ClipViews and ScrollViews. I've looked at the Cocoa Views Guide, and pertinent class documentation, but the requisite means have not been obvious to me. I've looked either for some kind of notification to register for, or a method to override. I have tried registering for the NSViewFramDidChangeNotification of the scroll view's clipView, but seem to only receive that on a resize, and not on scrolling. I suspect what I need to know is when the documentVisibleRect (or visibleRect) changes... I'd appreciate any pointers regarding what I should be looking at to devise a solution. TIA.
_______________________________________________


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: [NSView noob] How to be detect when a scroll view scrolls its document view
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Shortcut handling in different keyboard layouts
  • Next by Date: Re: (un)mounting volumes
  • Previous by thread: Re: How to detect curly quotes
  • Next by thread: Re: [NSView noob] How to be detect when a scroll view scrolls its document view
  • Index(es):
    • Date
    • Thread