Re: Core data / bindings with two one->many relationships
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