• 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: Sat, 13 Oct 2012 20:58:42 -0700

It looks to me like what you're doing should work as you expect.  I don't think you are violating any of the predicate gotchas in Core Data Programming Guide ▸ Persistent Store Features.

So you need to experiment with different methods.

• Remove the -setPredicate: statement.  Now is filteredPersons everything in the store, as expected, or still empty?
• Change the predicate to @"name == %@", @"Jones, A.", assuming that "Jones, A." is actually in the store.  Does it find Jones?
• TDry a predicate built by passing NSExpression objects, NSInPredicateOperatorType, etc. to +[NSPredicate predicateWithLeftExpression:rightExpression:modifier:type:options:]



_______________________________________________

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

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