Re: Knowing if a scroll view is being scrolled
Re: Knowing if a scroll view is being scrolled
- Subject: Re: Knowing if a scroll view is being scrolled
- From: Erik Buck <email@hidden>
- Date: Thu, 15 Feb 2007 08:13:59 -0800 (PST)
A delay of 0.0 should be enough to delay redarwing until after the scrolling stops because the scroller will steal all events until the user releases the mouse button.
However, I would not resort to drawing a degraded view until every other option was explored. For example, try using setCopiesOnScroll: and in drawRect: only the rects that you need to draw: See draw - (void)getRectsBeingDrawn:(const NSRect **)rects count:(int *)count. If you don't draw anything else, it may be fast enough for live scroll at full quality.
See http://developer.apple.com/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/Basics.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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