Re: Core data "grand-children" list
Re: Core data "grand-children" list
- Subject: Re: Core data "grand-children" list
- From: Steve Steinitz <email@hidden>
- Date: Wed, 17 Sep 2008 07:09:11 +1000
Hi Toma
On 16/9/08, Toma? Kragelj <email@hidden> wrote:
I have the following core data model:
Project <---->> Session <---->> Measurement
On my form I want the user to select the desired project from
the table and then based on that selection, I want to display
all measurements (for all sessions) for that project.
Any help would be greatly appreciated.
In the old EOModeler days we would have used a 'flattened relationship'.
Maybe you'll discover some is some deep binding magic, but until then
I'd just write a KVC-friendly method on Project, say 'measurements',
which returns an NSSet of its measurements, via its sessions.
Then, in
iterface builder, bind the Measurement array controller content
set to
Project Array Controller
selection
measurements
Later, you might want to think about possible KVO issues.
Cheers,
Steve
_______________________________________________
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