• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Selected value binding in popups
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selected value binding in popups


  • Subject: Selected value binding in popups
  • From: Rick Mann <email@hidden>
  • Date: Wed, 15 Jun 2016 21:15:39 -0700

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?

--
Rick Mann
email@hidden



_______________________________________________

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


  • Follow-Ups:
    • Re: Selected value binding in popups
      • From: Ken Thomases <email@hidden>
    • Re: Selected value binding in popups
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Properties: A question of style
  • Next by Date: Can initialKey & initialValue be set via bindings?
  • Previous by thread: Re: Properties: A question of style
  • Next by thread: Re: Selected value binding in popups
  • Index(es):
    • Date
    • Thread