Re: Cocoa-dev Digest, Vol 8, Issue 783
Re: Cocoa-dev Digest, Vol 8, Issue 783
- Subject: Re: Cocoa-dev Digest, Vol 8, Issue 783
- From: Jamie Pinkham <email@hidden>
- Date: Thu, 29 Sep 2011 21:42:25 -0400
Fair point, Graham.
I'm always wary of timers because careless use of them can cause problems like retain cycles.
Sent from my iPhone
On Sep 29, 2011, at 9:35 PM, Graham Cox <email@hidden> wrote:
>
> On 30/09/2011, at 11:25 AM, Gordon Apple wrote:
>
>> Much easier than trying to manage timers.
>
>
> I disagree. Timers are not rocket science, and they are optimised (one assumes) not to consume more CPU time than they truly need. Your idea is more complicated and is polling, meaning that you are consuming more power and resources than necessary. Do you wake up every minute during the night to check whether it's time to get up? No, so you shouldn't program a computer the same way.
>
> --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
_______________________________________________
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