• 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: Trying to calculate a running total using Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to calculate a running total using Core Data


  • Subject: Re: Trying to calculate a running total using Core Data
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 21 Apr 2008 07:02:16 -0400

I know how to create a NSFetchRequest on a transaction object but I am unsure on how to create the NSPredicate object to extract all the transactions that were created prior to the current transaction.


  How about consulting the documentation?

Fetching (trust me - re-read this)
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFetching.html

Predicates Programming Guide (useful for the future, but probably not needed in your case right now)
http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predicates.html


I am trying to figure out how to calculate a running total using core data.

Keep this in mind:

Set & Array Operators (directly relevant)
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/ArrayOperators.html

Interestingly, the example used in the above is similar to what you're doing ...

--
I.S.


_______________________________________________

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


References: 
 >Trying to calculate a running total using Core Data (From: Felix Rodriguez <email@hidden>)

  • Prev by Date: Re: Implementing a Slightly Unusual NSTableView
  • Next by Date: Cropping an NSBitmapImageRep to a given NSRect?
  • Previous by thread: Trying to calculate a running total using Core Data
  • Next by thread: Re: Trying to calculate a running total using Core Data
  • Index(es):
    • Date
    • Thread