Hi,
I have an entity called Task
in my Core Data model. The Task
entity has a transformable attribute called date
. The class of the date
attribute is a class called TDate
(which conforms to NSCoding, therefore being a transformable attribute). TDate
has a property of type NSInteger
called month
.
In my NSFetchRequest
I want to get all Task
objects of a specific month. I'm using the following predicate:
[NSPredicate predicateWithFormat:@"date.month == 7"]
That should get me all Task
objects in the month of July. However, with this predicate, no fetched objects are returned. I can confirm that there are Task
objects whos month is 7 (July) by taking out the predicate. Is there something wrong with my predicate syntax?
Thanks