• 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: To-Many/To-Many Master/Detail Core Data / Bindings Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question


  • Subject: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
  • From: Hunter Hillegas <email@hidden>
  • Date: Mon, 28 Dec 2009 16:19:13 -0800

Hi Quincey,

I did read this page - but I'm not sure it does what I want because it's only 2/3rds of my interface. The master-detail explained there works fine for my items list and to display the selected item's properties but I need the list of items (the master in Apple's example) to be the result of another relationship (the accounts - each account can have zero to many items). So almost as master-master-detail, even though that's a terrible term.

Does that make more sense?

On Dec 28, 2009, at 4:14 PM, Quincey Morris wrote:

> On Dec 28, 2009, at 15:32, Hunter Hillegas wrote:
>
>> My question is if I can do this all with bindings. The table of accounts works fine. What I can't seem to figure out is how to limit the 'Items' in the second NSTableView to just be the ones associated with the selected account, using bindings.
>
> If I understand your question correctly, the usual way is to bind the detail NSArrayController's content via the master NSArrayController's "selection" property. See:
>
> 	http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html
>
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
      • From: Quincey Morris <email@hidden>
References: 
 >To-Many/To-Many Master/Detail Core Data / Bindings Question (From: Hunter Hillegas <email@hidden>)
 >Re: To-Many/To-Many Master/Detail Core Data / Bindings Question (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
  • Next by Date: Trying to do something that *should* be simple...
  • Previous by thread: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
  • Next by thread: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
  • Index(es):
    • Date
    • Thread