>De: [EMAIL PROTECTED]
>
>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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to