Sorry for the delay in getting back to you; trying to actually have a
weekend. :-)
First: I'm assuming that your model looks something like this, with two
entities, and reciprocal to-many relationships between then (whether you're
using exactly the same names or not):
Consider two entities in a many-to-many relationship: Library and Book. In a
NSFetchResultController backed UITableView, I like to show all the books from
one library, so I constructed the following fetch request:
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:
Two things:
1. No, doing a string comparison with contains (and case and diacritical
folding active) is one of the slower kinds of string comparison. Straight
equality should be much faster.
2. You say that there are two entities, with a relationship defined. Why,
then, are you doing a string
You are right about the [cd], which is not supposed to be here, blame it on
poor copy-paste skills.
So how can I fix the predicate to compare entities?
- Koen.
On Mar 1, 2014, at 10:22 AM, Sixten Otto hims...@sfko.com wrote:
Two things:
1. No, doing a string comparison with contains