Re: Trying to calculate a running total using Core Data
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