• 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
How can I tell that a view has scrolled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I tell that a view has scrolled?


  • Subject: How can I tell that a view has scrolled?
  • From: Ivan Kourtev <email@hidden>
  • Date: Fri, 16 Apr 2004 23:27:10 -0400

Hi,

I have a subclass of NSView enclosed in a scroll view. Does anyone know how to tell that the user has scrolled the scroll view?

There doesn't appear to be an NSView method that gets invoked automatically upon scrolling of the enclosing scroll view (and logically, there shouldn't be because the NSView doesn't necessarily live within a scroll view).

I suppose drawRect will get sent after scrolling but that's too unreliable because I need to know that the user has scrolled and where for purposes other than drawing.

Does a scroll view tell its enclosed views that scrolling has occurred in any way other than marking them for redrawing? any help appreciated, thanks.

--
ivan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How can I tell that a view has scrolled?
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: [OT] Bug Reporter Questions
  • Next by Date: Re: Getting PDF and/or EPS data
  • Previous by thread: Re: [OT] Bug Reporter Questions
  • Next by thread: Re: How can I tell that a view has scrolled?
  • Index(es):
    • Date
    • Thread