Re: Creating a small timer?
Re: Creating a small timer?
- Subject: Re: Creating a small timer?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 9 Nov 2009 10:34:37 -0700
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@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