Créer un predicate à  partir d'un autre

JegnuXJegnuX Membre
Bonjour,

Je voudrais savoir si c'est possible de créer un predicate à  partir d'un autre déjà  existant ?

J'ai essayé ça mais en vain :
<br />NSPredicate *predicate1 = [NSPredicate predicateWithFormat:@&quot;origin == %@&quot;, parent];<br />NSPredicate *predicate2 = [NSPredicate predicateWithFormat:@&quot;%@ AND new == 1&quot;,[predicate1 predicateFormat]];<br />


Et l'erreur :
<br />*** Terminating app due to uncaught exception &#39;NSInvalidArgumentException&#39;, reason: &#39;Unable to parse the format string &quot;%@ AND new == 1&quot;&#39;<br />
Connectez-vous ou Inscrivez-vous pour répondre.