On Nov 9, 2009, at 10:19 AM, Michael Abendroth wrote:

How can I create such a timer?  I mean, it probably isn't very
efficient to redraw the whole view every second just to get the timer
to update.

Then don't. When it comes time to draw the change, make it so that it only redraws the part that needs to be redrawn using the - setNeedsDisplayInRect: method.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to