• 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
Curious about latencies with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Curious about latencies with bindings


  • Subject: Curious about latencies with bindings
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 23 Jan 2006 18:28:07 -0600

I've added an automated test infrastructure to my app that is driven via a timer which fires every 100 ms. Each time it fires an "opcode" is executed which does things like simulate a click on a button or set some property of a custom control.

While everything works a-ok, I decided that since I was using a dual 2GHz G5, that I'd experiment by pushing the limits of that timer :)

Dropping the interval to 50 ms worked most of the time, but my script began to fail. Take this particular run (script steps re-written as English pseudocode:)

(1) enter in correct answer to math problem
(2) validate the "correct" progress bar was incremented by one.

What (1) does, among other things, is to increment the number of correct answers in my "Math Drill" model. Step (2) simply queries the custom control as to its value (the control is bound to my model). By having such a low interval, I'm seeing situations where the progress bar control has not yet been updated by the time the timer executes step (2).

So, out of curiosity, am I running into latency issues with bindings? Is there some way to sense that there are "pending updates"? I really don't need the timer to run this fast; again, this was just an experiment to see how far I could push things. But, if I could address these rare situations, my tests would all execute twice as fast :)


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Big/Arbitrary integers
  • Next by Date: Re: Big/Arbitrary integers
  • Previous by thread: Re: Big/Arbitrary integers
  • Next by thread: invertrect, any cocoa versions suggested?
  • Index(es):
    • Date
    • Thread