• 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 - duplicate entries in NSPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to load a special nib file in cocoa?
  • Next by Date: Re: Change build flags; Ignore warnings; Alter C code?
  • Previous by thread: Re: How to load a special nib file in cocoa?
  • Next by thread: When exactly does a fault get fired?
  • Index(es):
    • Date
    • Thread