• 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: Trouble using ANY operator in an NSArrayController search predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble using ANY operator in an NSArrayController search predicate


  • Subject: Re: Trouble using ANY operator in an NSArrayController search predicate
  • From: Michael Tsai <email@hidden>
  • Date: Sat, 20 May 2006 10:09:52 -0400

On Saturday, May 20, 2006 8:02:59 AM Jim Correia <email@hidden>
wrote:

> In the operations section of the doc, it says:
>
> CONTAINS and IN serve both as aggregate operators and string
> operators, depending on the types of their arguments.
>
> The auto-generated test UI when you drag an entity over to IB uses
> predicates of the form "key contains[cd] $value" for the search field.
> Based on that, my working assumption is that it should work.

If you look at the operator type constants rather than the format string
grammar, you'll see that CONTAINS compiles down to IN with the LHS and
RHS swapped. And IN combined with ANY behaves as documented (LHS must be
a collection), which is to say that they won't do what you want.

--Michael

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trouble using ANY operator in an NSArrayController search predicate
      • From: Jim Correia <email@hidden>
  • Prev by Date: WebView/DOM tree link?
  • Next by Date: Bindings problem with NSPopupButton and placeholders
  • Previous by thread: Re: WebView/DOM tree link?
  • Next by thread: Re: Trouble using ANY operator in an NSArrayController search predicate
  • Index(es):
    • Date
    • Thread