• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data question on calculating percentages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Core Data question on calculating percentages (From: Scott Redheffer <email@hidden>)

  • Prev by Date: Re: Core Data question on calculating percentages
  • Next by Date: Re: Invoking Force Quit from Cocoa?
  • Previous by thread: Re: Core Data question on calculating percentages
  • Next by thread: NSMutableArray selector not recognised
  • Index(es):
    • Date
    • Thread