Re: NSPopUpButtonCell - How To Get The Changed Value
Re: NSPopUpButtonCell - How To Get The Changed Value
- Subject: Re: NSPopUpButtonCell - How To Get The Changed Value
- From: Jerry Krinock <email@hidden>
- Date: Sun, 09 Jun 2013 06:46:43 -0700
On 2013 Jun 08, at 18:28, Chris Tracewell <email@hidden> wrote:
> I can't seem to make KVO work since it's an array in a dictionary inside an array.
In the area of tables and bindings, there are typically a half dozen design patterns which should work but don't, and one that works. Binding to an array controller is generally the pattern that works.
I think you need to replace that dictionary with a class that has properties which you can bind to. In the table column containing your popup cell, bind the Selected Object to the array controller with Controller Key = arrangedObjects, and Model Key Path = thatProperty.
_______________________________________________
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