Popup button cells in a table view
Popup button cells in a table view
- Subject: Popup button cells in a table view
- From: Kiel Gillard <email@hidden>
- Date: Wed, 28 Jul 2010 11:53:55 +1000
Hi all,
I have a table view with a column whose data cell is a NSPopupButtonCell. I am using one array controller to provide the table view rows and a seperate array controller to provide the popup button menu items.
My table column (as opposed to the cell) has its content bound to the arranged objects of the popup button array controller. The content values are bound to a "name" property of the arranged objects of the popup button array controller. The selected object of the table column is bound to the appropriate property of the table view array controller's arranged objects. I am using the null placeholder option in the content and content value bindings.
This is the same configuration as you'd expect to find in mmalc's ToDos bindings example code. The only difference is I am using the null placeholder option.
My problem is this. When I run my app, the popup button menus contain the descriptions of the arranged objects in the popup array controller instead of respecting the content value binding I have specified.
I am certain my model is key-value coding compliant for the content value binding's key path. I am also certain that I am not binding to the cell (as opposed to the table column). From what I can infer, it seems that using the null placeholder option is not the source of the problem.
Does anyone have any ideas what I am doing wrong? Why would the content value binding of the table column be ignored?
Thanks for your ideas and suggestions,
Kiel_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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