Re: Bindings and 2 NSTableViews
Re: Bindings and 2 NSTableViews
- Subject: Re: Bindings and 2 NSTableViews
- From: email@hidden
- Date: Sun, 9 Jan 2005 18:47:00 -0500
Thats what i though also, but when i do that, i get this error:
[<BSCollection 0x3798f0> setValue:forUndefinedKey:]: this class is not
key value coding-compliant for the key objects.
On 9-Jan-05, at 6:35 PM, mmalcolm crawford wrote:
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
_______________________________________________
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