Colin
Colin

Reputation: 3762

nsfetchedresultscontroller with 1-* and *-*

Maybe this is pushing NSFetchedResultsController too far... anyway, this is what I'm trying to do:

I have the core data classes and relationships: A <->> B <<->> C (A has 1 to many to B, B has many-to-many to C). I'm given one object of type A. I want to use NSFetchedResultsController to give me all reached objects of type C (NOT distinctly - I want duplicates), where the sectionNameKeyPath is the 'name' property of the B object. Possible? How?

Upvotes: 0

Views: 49

Answers (1)

Martin R
Martin R

Reputation: 540105

I do not think that is possible with a NSFetchedResultsController. A FRC can only display the result of a fetch request, and a fetch request returns objects of a given entity without duplicates.

Upvotes: 1

Related Questions