Keeping NSTimeInterval updated with current time
Keeping NSTimeInterval updated with current time
- Subject: Keeping NSTimeInterval updated with current time
- From: PCWiz <email@hidden>
- Date: Mon, 2 Nov 2009 16:10:49 -0700
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 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 enumerate through the array
containing the objects every 5 minutes and just set the timeInterval
property. But is there a more efficient way to do this?
Thanks
_______________________________________________
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