iphone - NSFetchRequest predicate syntax -


I have a unit called Core work in the core data model Task The unit has a variable feature named date . There is a class named date attribute of class TDate (which corresponds to NSCoding, hence a variable attribute). There is a property typed in TDate NSInteger named month .

In my NSFetchRequest , I want to get all the work objects for a specific month. I am using the following undoubtedly:

[NSPredicate predicateWithFormat: @ "date.month == 7"]

that should < Get them all the work objects in the month of July However, with this predicate, no available items are returned. I can confirm that these rules are Tasks objects whos month 7 (July) by taking the ingenious. Is there anything wrong with my definitions?

Thanks

If you are using a SQLite backend, then you can convert Can not search against properties. On the SQLite backend, the fetch request forecast has been changed to SQL and executed on the SQLite engine. Because SQLite cocoa has no knowledge, it predicts that executable variable properties can not be used against the SQLite backend.

If you are using an XML, binary or in-store store, you can predict that the query against the variable properties, the entire object graph is in-store and it is used for native cocoa Using inquiries.


Comments