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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]