Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
- Subject: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
- From: Quincey Morris <email@hidden>
- Date: Mon, 28 Dec 2009 16:14:19 -0800
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