On Sep 17, 2009, at 10:00, Michael Swan wrote:

So I am working on a simple Core Data app that can track how much I have made from various apps I sell (right now I just have two iPhone ones I charge for). This is also the app that my Expenses tutorial is based on. I am working on the monthly totals portion again and trying to use fetching for the totals. I have added a 'month' derived attribute to the AppSales entity (yes, I know it should be singular, but I dare not change it now). I have added a text field to the interface that shows the month attribute correctly with bindings. However, when I am in the Application entity's class and do a fetch for all AppSales that have an application of self and a month of x (varies by method, 1-12) I get a keypath not found in entity message in the log. I have tested to make sure that I can in fact fetch AppSales entities based on the Application instance and that part works, I can even NSLog the month of the first item in the array. I must be missing something really simple but have no idea what it is. I have listed relevant code below:

What do you mean by "derived attribute"? A transient attribute? That won't work.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to