title: Trying to fetch results in Core Data based on Entity's relationship object in iOS
body: <p>I am working on an iOS application where I am trying to fetch results that are based on the Entity's relationship entity.  This relationship entity has yet another relationship entity, and it is this second entity's attribute that I would like to use in my predicate.  The predicate that I am trying to form is:</p>
  
  <pre><code>NSString *filter = @"name";
  NSPredicate *pred = [NSPredicate predicateWithFormat:@"EntityB.EntityC.attributeOfEntityC == %@", filter];
  </code></pre>
  
  <p>Is this construction of a predicate correct?  If not, how would I go about constructing one such that it fulfils the criteria that I require?</p>