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: Koen van der Drift <email@hidden>
- Date: Sun, 14 Oct 2012 09:33:24 -0400
On Sat, Oct 13, 2012 at 11:58 PM, Jerry Krinock <email@hidden> wrote:
> So you need to experiment with different methods.
>
> • Remove the -setPredicate: statement. Now is filteredPersons everything in the store, as expected, or still empty?
Yes, it contains all the names currently in the store.
> • Change the predicate to @"name == %@", @"Jones, A.", assuming that "Jones, A." is actually in the store. Does it find Jones?
Yes, it does.
> • TDry a predicate built by passing NSExpression objects, NSInPredicateOperatorType, etc. to +[NSPredicate predicateWithLeftExpression:rightExpression:modifier:type:options:]
Ok, I will look into that. Thanks for your input.
- Koen.
_______________________________________________
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