• 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
Bindings problem : list of To-Many Relationships (was NSPopupButtonCell handling click too early ? )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings problem : list of To-Many Relationships (was NSPopupButtonCell handling click too early ? )


  • Subject: Bindings problem : list of To-Many Relationships (was NSPopupButtonCell handling click too early ? )
  • From: Pierre-Loïc Raynaud <email@hidden>
  • Date: Thu, 1 Dec 2005 19:35:29 +0100

Hi All,

As I explained in a previous (unanswered) mail in this list, I have a problem in an application where NSPopupButtonCell are in a NSTableView.
I'm not sure I was crystal-clear in my explanation of the problem, so I will try to reformulate :

In a Survey application, I have a NSTableView with two columns : one for "Question", one for "PossibleAnswers".
PossibleAnswers are shown with a NSPopupButtonCell, populated by a NSArrayController whose contentSet is bound to my NSTableView selection.

For example I have
on Row 1 : Q: Favorite Color ? and A: blue|red|green
on Row 2 : Q: Favorite Language ? and A: objC|Java|C++

Everything works well, but If I click directly in the Popup to change my Favorite Color, and the selected row was the one with Favorite Language, it seems that the NSArrayController that populates the NSPopupButtonCell gets confused and is not notified that the tableview selection has changed... So items in the popup are the possible answers for Favorite Language, not Favorite Color

Is that a bug with bindings or did I miss something ?

I isolated the problem in a small application, available with source code (XCode 2.2) at <http://www.pierlis.com/ListOfToMany.zip>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Window layering and save sheet attachment in multi-window document
  • Next by Date: Re: Find all running apps and their windows
  • Previous by thread: Re: CoreData, TextView and Bindings
  • Next by thread: Re: Help on subclassing
  • Index(es):
    • Date
    • Thread