Re: How can I tell that a view has scrolled?
Re: How can I tell that a view has scrolled?
- Subject: Re: How can I tell that a view has scrolled?
- From: Allan Odgaard <email@hidden>
- Date: Sat, 17 Apr 2004 06:45:25 +0200
On 17. Apr 2004, at 5:27, Ivan Kourtev wrote:
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.
May I ask which?
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.
I think the NSClipView sends translateOriginToPoint: to your view.
This can be overloaded, but also generates a
NSViewBoundsDidChangeNotification. I do not know of a documented way
to intercept the scroll.
** Cocoa FAQ: <
http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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.