• 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: Peter Ammon <email@hidden>
  • Date: Wed, 23 Jul 2008 14:24:07 -0700


On Jul 23, 2008, at 1:58 AM, email@hidden wrote:


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.

Ok, thanks for clarifying your question. As you guessed this isn't yet possible in IB.


-Peter


_______________________________________________

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


References: 
 >Re: NSPredicateEditorRowTemplate and ANY predicate (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Daemon Advice?
  • Next by Date: Re: master-detail: binding array controller to the attribute of selection of master array controller
  • Previous by thread: Re: NSPredicateEditorRowTemplate and ANY predicate
  • Next by thread: Help with "Messages without a matching method signature..." issue
  • Index(es):
    • Date
    • Thread