Where to find the documentation of the SUBQUERY feature of NSPredicate for Core Data?
views:
54answers:
1
+1
A:
Good question.
The only thing I found was a reference to NSSubqueryExpressionType in the NSExpression documentation, which is what is used when you specify SUBQUERY
in your predicate.
I also found a couple of examples in the expressionForSubquery:usingIteratorVariable:predicate: method of the same document.
This seems like it should be in the Predicate Programming Guide, but the only mention of it there is in the reserved words section.
I found some mentions of it in the huge Frameworks Foundation Reference, but these are mostly duplicates of the previous stuff I linked to.
Here's the Google search query I tried using, which only returned 14 results.
Hopefully someone else is more successful.
Senseful
2010-06-19 18:22:12
Indeed it seems that this feature is entirely undocumented. What a pitty - seems to be so cool. I can only guess: They fear that people over-use this, since it seems to be something reall, really heavy.
dontWatchMyProfile
2010-06-19 19:27:37
Or not enough people have filed a radar with apple to make it important enough to document. If you want to see documentation on this feature, file a radar.
Marcus S. Zarra
2010-06-22 16:06:10