NSPopupButtonCell handling click too early ? (Binding problem)
NSPopupButtonCell handling click too early ? (Binding problem)
- Subject: NSPopupButtonCell handling click too early ? (Binding problem)
- From: Pierre-Loïc Raynaud <email@hidden>
- Date: Wed, 30 Nov 2005 21:20:45 +0100
Hi All,
In my CoreData/Bindings app, an NSTableView allows the user to edit
"Characteristics". It has two columns :
"Criteria", and "Value".
"Characteristic" is an entity made of a to-one relationship to entity
"Criterium", and another one to entity "CriteriumValue".
The Criterium Entity has a to-many relationship (possibleValues) to
entity "CriteriumValue".
For example, in my table,
I have on row 1: Criterium = "Sex"and Value = PopupButton made with
entries from entity CriteriumValue "male" and "female".
and on row 2 : Criterium = "Age", and Value = PopupButton made with
entries from entity CriteriumValue "young" and "old".
The PopupButton are populated thanks to an NSArrayController (on
entity "Value") whose contentSet is bound to the "Characteristics"
NSArrayController with keyPath selection.criterium.possibleValues.
If I click on row 1 Value popup, having row 1 selected before, it
works very well...
<http://www.pierlis.com/coolitworks.png>
(the same for row 2)
but...
If I click on row 1 Value popup, having row 2 selected before, the
popup shown is the one from row 2 !!
check this screenshot here : <http://www.pierlis.com/isthatabug.png>
It looks like the NSPopupButtonCell handle the "click" message before
"notifying" my NSArrayController that row selection has changed....
I'm sure somone ha experienced this... Is there any workaround ?
If useful, the relevant part of the CoreData model can be found at :
<http://www.pierlis.com/model.png>
_______________________________________________
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