Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread Ken Thomases
On Nov 2, 2009, at 7:10 PM, Graham Cox wrote: On 03/11/2009, at 10:10 AM, PCWiz wrote: What I want to do is around every 5 minutes, update the timeInterval to be consistent with the current time. The problem is that I need to do this update for a large number of instances of the object. O

Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread Graham Cox
On 03/11/2009, at 10:10 AM, PCWiz wrote: What I want to do is around every 5 minutes, update the timeInterval to be consistent with the current time. The problem is that I need to do this update for a large number of instances of the object. One way I could think to do this would be to enu

Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread PCWiz
postedTime is a static date object. timeInterval is the number of seconds from the postedTime TO the current time, so timeInterval is variable. I haven't observed a performance problem on my machine, I'm just considering less powerful computers and how they might handle it, but if thats t

Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread Sean McBride
On 11/2/09 4:10 PM, PCWiz said: >In my model class I have 2 properties, timeInterval and postedTime. >postedTime contains a static date. timeInterval uses the >timeIntervalSinceNow method to find the number of seconds that has >passed by since the date in postedTime. What do you mean 'static'? I

Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread Jens Alfke
On Nov 2, 2009, at 3:10 PM, PCWiz wrote: What I want to do is around every 5 minutes, update the timeInterval to be consistent with the current time. The problem is that I need to do this update for a large number of instances of the object. One way I could think to do this would be to enu