Cocoa Bindings - Populating a popupcell in a tableview column with id passed.
Cocoa Bindings - Populating a popupcell in a tableview column with id passed.
- Subject: Cocoa Bindings - Populating a popupcell in a tableview column with id passed.
- From: "vibhatha v" <email@hidden>
- Date: Mon, 11 Dec 2006 20:59:29 +0530
Hi,
I have a table view in which i am using NSPopUpButtonCell.
I am using Binding for doing so.
I have two ISTEntityList .
One holds all the possible values for the table column. It has two columns
my_value and my_display. ( Display will show the values to the user and
value is the id for each. )
Now in the second EntityList2, i have values for each column. It has the
column value actual_value.
First i set the contentValue = EntityList1.my_display for the table column.
( Now all the values are getting populated.)
Now if my second entity had the display name directly, then i could have
used selectedValue = EntityList2.actual_display.
But the problem is, i have the id in the EntityList2. ( Id is an unique
integer value for identifying the display)
I have to display the EntityList1.my_display as the selected row in the
tableview for EntityList1.my_value = EntityList2.actual_value
Can anyone help me on this.
Thanks in Advance,
Vibhatha.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden