Re: Couple more binding questions
Re: Couple more binding questions
- Subject: Re: Couple more binding questions
- From: Yann Bizeul <email@hidden>
- Date: Fri, 17 Sep 2004 08:20:29 +0200
Hello,
The problem I'm having is getting it to work with multiple selections in the list table. Using selection causes nothing to be displayed in the myObject table. I tried using selectedObjects.data instead, but it appears that that's causing the myObject controller array to be populated with the arrays instead of the objects in the arrays. I get a NSCFArray doesn't respond to columnKey error when testing.
I understood you want to display values concerning the selected object in your second table... But what if you select two objects ? The NSArrayController *will* have to return an NSArray. AFAIK, a NSTableView column is unable to take values from two objects, I'm afraid you will have to subclass a NSObjectController to get the selected object(s) and do what you have to do to merge them in something the second NSTableView can accept.
Did I understand nothing ? Am I completely wrong ? :-)
--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/
_______________________________________________
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