Follow-up to my own question:
I decided that since the year and month derived properties were only there for
fetch requests, the correct thing to do is to get rid of them and instead use
predicates that look for the corresponding date ranges. That works just as
well, and avoids the derived
On 11/17/09 9:02 PM, David Catmull said:
I have an entity with a date property, and derived properties year
and month (by having year/month methods in my NSManagedObject
subclass). In a couple of different places, I fetch the entries from a
particular year or month- the fetch requests's predicate
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
I have an entity with a date property, and derived properties year and
month (by having year/month methods in my NSManagedObject subclass). In a
couple of different places, I fetch the entries from a particular year or
month- the fetch requests's predicate says year == 2009.
This works fine