On Sun, 7 Nov 2010 21:04:36 -0800, Rick Mann <rm...@latencyzero.com> said: >I have a need to synchronize the actual display update of a UIView hierarchy >with real time. In my case, I update the display once per second, and I want >the display to update *on* the second. > >Since I don't really have control of when the draw happens, I don't know how >to do this. I update all the various UILabels in my view, and then exit the >current iteration of the run loop. Some time later iOS completes drawing and >the display updates.
To force a view to update right now instead of waiting for the next "redraw moment" (as I call it), you might be able to take advantage of the "back door" rule that says that a transaction block that orders an animation to a layer, if the block is not preceded by any changes to the layer, will cause animation to begin immediately when the CATransaction class method +commit+ is called, without waiting for the redraw moment. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com