• 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: NSPredicateEditorRowTemplate and ANY predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicateEditorRowTemplate and ANY predicate


  • Subject: Re: NSPredicateEditorRowTemplate and ANY predicate
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 23 Jul 2008 08:58:56 +0000 (GMT)

>De: email@hidden
>
>On Jul 22, 2008, at 12:05 PM, Frédéric Testuz wrote:
>
>> Hello,
>>
>> Is it possible to prepare a row template for a NSPredicateEditor in
>> IB for a predicate like "ANY keyPath == 'aValue'" ?
>>
>
>I'm not sure I understand your question.  How is this different than
>just a normal OR type compound predicate?

My question was too general. My model have is like this :

Book <--->> Role <<---> Author

A book can have many authors, an author can be on many books. The reason of the Role is that for a book, an author
can be a writer, a drawer, a colourist, etc.
So, to find the books with at least an author is "John", I have this sort of predicate :

ANY roles.author.name CONTAINS 'John'

It works pretty well. But now I want a NSPredicateEditor to give me this sort of predicate. I don't find a way to do
it in IB without subclassing NSPredicateEditorRowTemplate. Perhaps I have not see it.

For info, I tried the subclassing and it works.

_______________________________________________

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: NSPredicateEditorRowTemplate and ANY predicate
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: SBApplication error with iTunes 7.7
  • Next by Date: Checking for KVC compliancy
  • Previous by thread: Re: NSPredicateEditorRowTemplate and ANY predicate
  • Next by thread: Re: NSPredicateEditorRowTemplate and ANY predicate
  • Index(es):
    • Date
    • Thread