• 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 not staying in sync when using NSPopUpButton selectItemWithTitle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings not staying in sync when using NSPopUpButton selectItemWithTitle


  • Subject: Bindings not staying in sync when using NSPopUpButton selectItemWithTitle
  • From: Tod Cunningham <email@hidden>
  • Date: Sat, 11 Sep 2004 23:47:55 -0400

I am just wondering if this is a bug or by design for some reason. I have a NSPopUpButton that is bound via cocoa bindings. When I change the data it is bound to the popup works fine. However, if I change the value of the popup via selectItemWithTitle the popup's value changes, but the bound data doesn't get updated.

if( [bandPopUpButton itemWithTitle:[menuItem title]] != nil )
{
// Works find and the popup's value gets updated
[m_contact setBand:[menuItem title]];

// !! TC !! Why do I have to call setBand. If I just try to call selectItemWithTitle
// the datamodel isn't getting updated.
//[bandPopUpButton selectItemWithTitle:[menuItem title]];
}


Thanks,

Tod Cunningham

_______________________________________________
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


  • Follow-Ups:
    • Re: Bindings not staying in sync when using NSPopUpButton selectItemWithTitle
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: NSOpenPanel's setCanCreateDirectories:'s method
  • Next by Date: Re: CFXMLNodeGetString() chokes on "&", "<" or ">"
  • Previous by thread: Re: NSOpenPanel's setCanCreateDirectories:'s method
  • Next by thread: Re: Bindings not staying in sync when using NSPopUpButton selectItemWithTitle
  • Index(es):
    • Date
    • Thread