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