How can I tell that a view has scrolled?
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.