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


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

  • Prev by Date: Re: copy in WebView
  • 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