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: Jerry Krinock <email@hidden>
- Date: Mon, 15 Oct 2012 05:19:17 -0700
On 2012 Oct 15, at 03:45, Koen van der Drift <email@hidden> wrote:
> So I cannot directly filter an array of dictionaries using a predicate? That was the whole goal of my question, see my original post.
Oh, now I see. I'd assumed that 'persons' was an array. It's a dictionary!
But that should still work. According to the Predicate Programming Guide,
"The collection may be an array, a set, or a dictionary – in the case of a dictionary, its values are used."
But, again, I don't trust those things. Especially when they don't work :)) Try replacing
persons
with
[persons allValues]
in your format string.
_______________________________________________
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