Re: NSPredicateEditorRowTemplate and ANY predicate
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