• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: filtering an array of entities using NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: filtering an array of entities using NSPredicate
      • From: Koen van der Drift <email@hidden>
References: 
 >filtering an array of entities using NSPredicate (From: Koen van der Drift <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Jerry Krinock <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Koen van der Drift <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Koen van der Drift <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Willeke <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Willeke <email@hidden>)
 >Re: filtering an array of entities using NSPredicate (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: filtering an array of entities using NSPredicate
  • Next by Date: Re: filtering an array of entities using NSPredicate
  • Previous by thread: Re: filtering an array of entities using NSPredicate
  • Next by thread: Re: filtering an array of entities using NSPredicate
  • Index(es):
    • Date
    • Thread