Re: filtering an array of entities using NSPredicate
Re: filtering an array of entities using NSPredicate
- Subject: Re: filtering an array of entities using NSPredicate
- From: Willeke <email@hidden>
- Date: Mon, 15 Oct 2012 01:56:28 +0200
> Maybe another clue, if I NSLog the predicate, I get this:
>
> name IN {{"name" = "Jones A."}, {"name" = "Williams S."}, {"name" =
> "Brown M."}, {"name" = "Tobias S."}}
>
> That seems as expected to me.
>
the predicate should be something like
name IN {"Jones A.", "Williams S.", "Brown M.", "Tobias S."}
what is persons in this statement?
[fetchRequest setPredicate: [NSPredicate predicateWithFormat: @"name IN %@", persons]];
Willeke
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden