• 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: 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

References: 
 >Autoscrolling when dragging? (From: Rick Mann <email@hidden>)
 >Re: Autoscrolling when dragging? (From: Graham Cox <email@hidden>)
 >Re: Autoscrolling when dragging? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Autoscrolling when dragging?
  • Next by Date: validateMenuItem Not Called for Undo: Menu Item?
  • Previous by thread: Re: Autoscrolling when dragging?
  • Next by thread: Re: Autoscrolling when dragging?
  • Index(es):
    • Date
    • Thread