• 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 "grand-children" list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: referencing XML Data
  • Next by Date: Re: referencing XML Data
  • Previous by thread: Core data "grand-children" list
  • Next by thread: Re: Core data "grand-children" list
  • Index(es):
    • Date
    • Thread