• 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: Autoscrolling when dragging?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoscrolling when dragging?


  • Subject: Re: Autoscrolling when dragging?
  • From: Rick Mann <email@hidden>
  • Date: Thu, 25 Aug 2011 17:48:11 -0700

On Aug 25, 2011, at 17:42 , Graham Cox wrote:

> This is no more complicated than having two timers, and will likely be easier to manage - I've found that adding too many timers to a run loop can end up hitting performance, but even if it doesn't, it just seems wrong when one will do.

Hmm. I think I disagree on this point. Two timers makes it very clear what's going on in the code, and I don't have to worry about the math. Moreover, I don't enable a rapid timer until it's actually needed.

In any case, I did it with two timers, and it all seems to work well. The first timer only exists until it fires (or is invalidated because the user left the autoscroll area before it fired).

--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Autoscrolling when dragging?
      • From: Graham Cox <email@hidden>
References: 
 >Autoscrolling when dragging? (From: Rick Mann <email@hidden>)
 >Re: Autoscrolling when dragging? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Autoscrolling when dragging?
  • Next by Date: Re: Autoscrolling when dragging?
  • Previous by thread: Re: Autoscrolling when dragging?
  • Next by thread: Re: Autoscrolling when dragging?
  • Index(es):
    • Date
    • Thread