Bindings - duplicate entries in NSPopupButton
Bindings - duplicate entries in NSPopupButton
- Subject: Bindings - duplicate entries in NSPopupButton
- From: Rolland Bryan <email@hidden>
- Date: Fri, 17 Feb 2006 09:52:48 +0200
Briefly, I am getting duplicate entries in an NSPopupButton when
invoking the insert: or add: actions of a core data model bound
NSArrayController.
The details are as follows:
With NSArrayController bound to an entity in my core data model (via
the managedObjectContext binding, and with "automatically prepares
content" set), I have an NSPopupButton with the following bindings:
content = NSArrayController.arrangedObjects
contentValues = NSArrayController.arrangedObjects.identifier
selectedIndex = NSArrayController.selectedIndex
Then I have a button connected to the insert: action of the
NSArrayController.
When I click the button to add an entity, I get two identical entries
in the NSPopupButton, both referencing the same new model entity.
What am I doing wrong?
Many thanks
Rolland Bryan
_______________________________________________
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