• 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
Re: Knowing if a scroll view is being scrolled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Knowing if a scroll view is being scrolled
      • From: Half Activist <email@hidden>
  • Prev by Date: Re: Knowing if a scroll view is being scrolled
  • Next by Date: Re: Knowing if a scroll view is being scrolled
  • Previous by thread: Re: Knowing if a scroll view is being scrolled
  • Next by thread: Re: Knowing if a scroll view is being scrolled
  • Index(es):
    • Date
    • Thread