Re: Autoscrolling when dragging?
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