• 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
NSScrollView scroll notifications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView scroll notifications?


  • Subject: NSScrollView scroll notifications?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 1 Nov 2004 16:14:07 -0700

I checked the archives and did not see any answers to this question...

I have a custom view that's inside an NSScrollView. This custom view sets up subviews of its own, and the subviews have subviews of their own. The latter subviews set up mouse tracking rectangles. I've set things up so that if their frame changes, or if their superview's frame changes, then the tracking rectangle is reset.

But when the view is scrolled, the tracking rectangles stay the same. How do I let the subviews know when the enclosing scroll view has been scrolled? I need to update the tracking rectangles when this happens... I've already tried watching for frame-did-change and bounds-did-change notifications (and turning them on) for the clip view and scroll view; neither worked.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED] Re: NSScrollView scroll notifications?
      • From: Nick Zitzmann <email@hidden>
    • Re: NSScrollView scroll notifications?
      • From: Keith Renz <email@hidden>
  • Prev by Date: NSImage release crash
  • Next by Date: Re: nextKeyView and NSTabView: How to prevent the tabbing order from going out of the tab view?
  • Previous by thread: Re: NSImage release crash
  • Next by thread: Re: NSScrollView scroll notifications?
  • Index(es):
    • Date
    • Thread