Re: Core Data question on calculating percentages
Re: Core Data question on calculating percentages
- Subject: Re: Core Data question on calculating percentages
- From: John Timmer <email@hidden>
- Date: Sat, 01 Oct 2005 11:57:34 -0400
- Thread-topic: Core Data question on calculating percentages
> I seems like a waste to make a fetch request for every expense item. Is
> there a better way or better data model to use in these types of
> situtations.
You could try making a "total expenses" object that has relationships with
all expense objects. That way, you can trigger a method to update the total
when any expense changes, and have the total notify all the other expenses
that the total's changed. No observing to set up that way.
JT
_______________________________________________
This mind intentionally left blank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden