• 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
Re: NSPopUpButtonCell - How To Get The Changed Value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSPopUpButtonCell - How To Get The Changed Value (From: Chris Tracewell <email@hidden>)

  • Prev by Date: Re: NSURLConnection and 404
  • Next by Date: UICollectionView with NSFetchedResultsController; compatible?
  • Previous by thread: NSPopUpButtonCell - How To Get The Changed Value
  • Next by thread: NSURLConnection and 404
  • Index(es):
    • Date
    • Thread