Re: Core Data derived property not recognized after save & reopen
Re: Core Data derived property not recognized after save & reopen
- Subject: Re: Core Data derived property not recognized after save & reopen
- From: David Catmull <email@hidden>
- Date: Wed, 18 Nov 2009 19:12:20 -0800
On Nov 18, 2009, at 2:13 PM, Sean McBride wrote:
> What do you mean exactly by "derived properties"? Are they transient?
> Are they in your xcdatamodel? In any case, I believe your problem is
> that you can only fetch against properties that are in the persistent
> store ie in your xcdatamodel and not transient.
I subclassed NSManagedObject and just added year and month methods. What confuses me is the sequence of events that leads to the failure - it works after reopening the document, *until* I make a change.
In any case, I've gotten around this by dropping the derived property approach and using predicates that access the original date property directly.
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
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