Re: two NSArrayControllers
Re: two NSArrayControllers
- Subject: Re: two NSArrayControllers
- From: Mark Knopper <email@hidden>
- Date: Wed, 1 Jun 2005 17:08:23 -0400
By the way, I should also ask if anyone has ever done this before
(bind two table columns' values to different NSArrayControllers). Is
this known to work?
(Maybe that would be an easier question...)
Thanks,
Mark
On Jun 1, 2005, at 12:40 PM, Mark Knopper wrote:
Hi. I have a bindings problem that should be simple but I am
getting a very strange result. Here is the situation: I have two
NSArrayControllers whose contentArray are bound to NSArrays in my
Controller.m code. Then I have an NSTableView where one column
should display the Name key of the arrangedObjects of the first
array, and the other column should display the Comment key of the
arrangedObjects of the second array. Seems simple, and there is a
hint on mmalc's page about this:
"You can also use this mechanism to do other things with a table
view's bindings (like pull the selection indexes from one array
controller, while displaying the arranged objects of another array
controller)."
However, when I do this, what I get is what appears to be a "("
character in the Comments column for each row. I found that if I
double click on one of these elements and paste it into TextEdit, I
get the following:
(
comment1,
comment2,
comment3,
comment4,
comment5
)
This appears to be a listing of an array of all of the
commentField's of each Comment object. How can that have happened??
I've tried a bunch of things but can't seem to figure out how to
get the correct comment to appear in the rows.
Any ideas would be *most* welcome.
Mark
_______________________________________________
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