J'ai l'entité Unit
et Tag
, chacun avec une relation to-many à l'autre.Prédicat et objets distincts
J'utilise NSFetchedResultsController
pour gérer les données. Ce dont j'ai besoin est de retourner l'objet Unit
distinct en NSFetchedResultsController
pour la condition Tag.show == YES
. Je ne sais pas comment nourrir tout cela à NSFetchedResultsController
. Définir l'entité à Unit
ou Tag
, comment créer un prédicat pour cela.
Exemple:
j'ai 6 Tag
objets tag1...tag6
et 3 objet Unité unit1, unit2, unit3
. tag1, tag2 pointent vers unit1, tag3, tag4 vers unit2. tag1 ... tag4 met show == YES
condition. Donc, je veux enfin obtenir uni1 et unit2 en NSFetchedResultsController
.
Est-ce Visual Basic ou Delphi? – leppie