Re: Bindings and 2 NSTableViews
Re: Bindings and 2 NSTableViews
- Subject: Re: Bindings and 2 NSTableViews
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 9 Jan 2005 15:35:08 -0800
On Jan 9, 2005, at 2:36 PM, email@hidden wrote:
I want to bind a BSCategoryList with a NSTableView. That works fine. I
use an NSArrayController and set its contentArray to
BSCategoryList.categories. When an item in that NSTableView is
selected, i want another NSTableView to show the contents of the
selected BSCategory. So, i set the binding for my column to my
NSArrayController - selected - collection.title. Am i doing this
right? Its not working on my side. Can anyone help me out here, maybe
there's a tutorial on this somewhere.
This sounds like a master-detail display, like that shown here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Tasks/masterdetail.html>
You would in this case need a second array controller to represent the
selected BSCategory's collection array. You bind the contentArray of
the second array controller to:
[Categories Controller].selection.collection
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden