Re: Cocoa-dev Digest, Vol 8, Issue 783

2011-09-29 Thread Gordon Apple
There must already be an array for the table, so just iterate the array every minute or whatever (single repeating timer), compare the times to [NSDate date} and start or shut down whatever has not been started or shut down. Much easier than trying to manage timers. On 9/29/11 8:06 PM,

Re: Cocoa-dev Digest, Vol 8, Issue 783

2011-09-29 Thread Graham Cox
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

Re: Cocoa-dev Digest, Vol 8, Issue 783

2011-09-29 Thread Jamie Pinkham
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 graham@bigpond.com wrote: On 30/09/2011, at 11:25 AM, Gordon Apple wrote: Much easier than trying to manage