Bindings problem : list of To-Many Relationships (was NSPopupButtonCell handling click too early ? )
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