• 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: Core data / bindings with two one->many relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data / bindings with two one->many relationships


  • Subject: Re: Core data / bindings with two one->many relationships
  • From: Scott Stevenson <email@hidden>
  • Date: Sat, 7 Jul 2007 19:06:25 -0700


On Jul 7, 2007, at 12:26 PM, Arthur C. wrote:

This problem can be translated to the following: we have a grandparent family, which can have many children, each of which can have multiple grandchildren.

Grandparent Family <->> Children <->> Grandchildren

Now I would like to have a table in my interface with all the Grandchildren, say older than 6
years, of the selected Grandparent Family (i.e. selected in the table of grandparent families).


I can set up a table which shows the all the children of a selected
Grandparent family but don't know how to get all the grand children
older than 6.

Your help would be appreciated.

There's no single line of code to do what you're asking. A few different things have to be wired up together. However, the main piece is a fetched property:


<http://developer.apple.com/documentation/Cocoa/Reference/ CoreDataFramework/Classes/NSFetchedPropertyDescription_Class/ Reference/Reference.html>

It's basically a fetch request that is attached to a specific entity. Here's the fetch request stuff:

<http://developer.apple.com/documentation/Cocoa/Reference/ CoreDataFramework/Classes/NSFetchRequest_Class/Reference/ Reference.html#//apple_ref/doc/c_ref/NSFetchRequest>


Hope that helps,

     - Scott
_______________________________________________

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: 
 >Core data / bindings with two one->many relationships (From: "Arthur C." <email@hidden>)

  • Prev by Date: Re: Totally stumped on extern NSString
  • Next by Date: Re: NSImage representations
  • Previous by thread: Core data / bindings with two one->many relationships
  • Next by thread: RE: Core data / bindings with two one->many relationships
  • Index(es):
    • Date
    • Thread