• 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
How to fetch objects with predicate through model graph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to fetch objects with predicate through model graph
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSScroller drawing problems
  • Next by Date: Re: Adding Spotlight keywords to files
  • Previous by thread: Re: NSScroller drawing problems
  • Next by thread: Re: How to fetch objects with predicate through model graph
  • Index(es):
    • Date
    • Thread