Re: Autoscrolling when dragging?
Re: Autoscrolling when dragging?
- Subject: Re: Autoscrolling when dragging?
- From: Graham Cox <email@hidden>
- Date: Fri, 26 Aug 2011 10:59:04 +1000
On 26/08/2011, at 10:48 AM, Rick Mann wrote:
> 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.
0.1 second (or so) is definitely not "rapid". Math? It's one comparison. An alternative is to set the timer period to the initial delay and then change its rate when the callback is first called.
Anyway, it's your code, do as you like - I just dislike cascading timers like that, it seems inelegant. Maybe it's my hardware background - an equivalent approach in hardware would always look like a kludge (and be costly - every chip saved is well, a chip saved).
--Graham
_______________________________________________
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