I have a tableview that has two columns. The second column has an 
NSPopUpButtonCell. The tableview content is supplied via an array controller of 
dictionaries. The first column shows the "title" key's value and the second 
column (the NSPopUpButtonCell) shows and array of choices in the dictionaries 
"options" key.  The array is a property of the view controller. All of the 
bindings are functioning correctly but I can't seem to make KVO work since it's 
an array in a dictionary inside an array. Ideally I would observe the change 
and then update a separate object with the new value. Each of the 
NSPopUpButtonCells in the tableview has it's own distinct set of options which 
is why I have put them as a property in the dictionary.

Since bindings seem impossible with this approach, I set the 
NSPopUpButtonCell's action to a method in my view controller with the thought 
of grabbing the new value and then updating my models property manually. 
However the action seems to be sent before bindings has actually updated 
anything so I still get the old value that is the value selected before I 
changed the selection in the menu. Anyway, I'm at a dead end and would really 
appreciate any help and critique.

-CT
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to