Core Data Running Total?
I have been looking at Core Data for a project that I am working on, but I have run into a roadblock. I want to be able to keep a sort of "Running Total", but still support deletion.
For example, lets say I am making an application for a person to log phone calls. When someone calls, they are either confirming that they are going to attend an event, or denying it. So each phone call can either be +1 or +0. I display a number of how many people are attending the event at the right. I also want to make sure that they can delete people from the list if the need to. If they delete someone near, say, the top of the list, then the running total has to be updated for everything.
Is there any good way to do this, or do I have to keep the total as a variable, and update every single entry in the database on deletion?
|