• 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: Core Data: strange keypath problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: strange keypath problem


  • Subject: Re: Core Data: strange keypath problem
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 17 Sep 2009 10:10:54 -0700

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@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: 
 >Core Data: strange keypath problem (From: Michael Swan <email@hidden>)

  • Prev by Date: Core Data: strange keypath problem
  • Next by Date: Re: Send POST data to browser
  • Previous by thread: Core Data: strange keypath problem
  • Next by thread: re: Core Data: strange keypath problem
  • Index(es):
    • Date
    • Thread