Couple more binding questions
Couple more binding questions
- Subject: Couple more binding questions
- From: Brad Miller <email@hidden>
- Date: Thu, 16 Sep 2004 22:00:57 -0700
Hi,
I'm starting to pull my hair out on this one since it seems like it
should be simple, but I can't get it to work. I have one table that's
a single column list. To keep it simple here, it has an array
controller with 2 keys, columnName and data. Data is populated from
the model with and array of myObject. I then have a second table
that's set up to display myObject. I want the myObject table to be
populated with the data array from what ever row is selected in the
list table. That was easy to get working, I set the myObject array
controller's contentArray to be bound to selection.data of the list
array controller.
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.
Does anyone know to achieve what want? Seems like I just need to get
the myObjects extracted from the selectedObjects.data binding.
My other question is something that I don't think is possible. Can you
bind multiple array controllers to a single table and use a common
index to set the rows? I'm assuming that the two data sources will
need to be combined into a single object in code before being feed into
the array controller.
Thanks,
Brad
_______________________________________________
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