• 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: 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

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>)

  • Prev by Date: Re: NSTextField not updated during large process
  • Next by Date: Re: Self contained command line tool
  • 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