Re: Selected value binding in popups
Re: Selected value binding in popups
- Subject: Re: Selected value binding in popups
- From: Ken Thomases <email@hidden>
- Date: Thu, 16 Jun 2016 13:16:15 -0500
On Jun 15, 2016, at 11:15 PM, Rick Mann <email@hidden> wrote:
>
> I have a popup menu that's bound to an NSArrayController of AVCaptureDevice objects. These objects have a "localizedName" property that I use for the content values, and the content and content objects point to the NSArrayController.
>
> I also have a property on my view controller used for the selected object.
>
> The problem comes when I re-build the array of objects that backs the NSArrayController (in the case where the selected device disappears): I assign a new array to the property, and the selected item in the popup menu changes to be the object description for the AVCaptureDevice object still in the selected property.
>
> IB doesn't let me bind to selected value when I'm binding to selected object. Is there anything I can do here?
Why not clear the property for the selected object? Or assign it to one of the (new?) objects in the array?
Regards,
Ken
_______________________________________________
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