Skip navigation.
 
mlRe: Trying to calculate a running total using Core Data
FROM : I. Savant
DATE : Mon Apr 21 13:02:16 2008

> 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.

Related mailsAuthorDate
mlTrying to calculate a running total using Core Data Felix Rodriguez Apr 21, 10:06
mlRe: Trying to calculate a running total using Core Data I. Savant Apr 21, 13:02
mlRe: Trying to calculate a running total using Core Data Keary Suska Apr 21, 17:33
mlRe: Trying to calculate a running total using Core Data I. Savant Apr 21, 18:07