How to fetch objects with predicate through model graph
How to fetch objects with predicate through model graph
- Subject: How to fetch objects with predicate through model graph
- From: Frédéric Testuz <email@hidden>
- Date: Mon, 8 Aug 2005 19:07:42 +0200
Hi,
In my CoreData application, I have a model with this entities :
Book <-->> Role <<--> Author
(I have the Role entity to specify the role/function of the author
for the book)
In my window, I have a NSTableView which lists the books and a
NSSearchField to filter the books. I have no problem to filter the
books for the title with the predicate binding of the search fiels :
title contains $value.
Now I want to obtain the books with an author name. I tried :
any roles.author.fullName contains $value
but it don't work.
(Note fullName is an attribute of Author, author a single
relationship of Role and roles a multiple relationships of Book).
Someone has an idea ?
Thanks,
Frédéric Testuz _______________________________________________
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