• 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
NSComboBox text binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox text binding


  • Subject: NSComboBox text binding
  • From: David Catmull <email@hidden>
  • Date: Fri, 10 Nov 2006 11:09:40 -0800

How do I get a combo box to update its value binding while an edit session is active? I have an NSComboBox's value bound to a value in an NSObjectController, and the problem is that the user's changes don't always get committed when I want them to.

Specifically, this is a Find dialog, and I'm using a combo box so I can have a history list of search terms. If the user types something and then clicks the Find button, rather than pressing return, then the find text binding doesn't get updated and it searches for the wrong text.

I can get around this by getting [findField stringValue] and putting that in the object controller before searching, but that kind of ruins the point of having bindings.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
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: NSComboBox text binding
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Convert path format?
  • Next by Date: Re: XML to NSDictionary
  • Previous by thread: Re: Rotation problem
  • Next by thread: Re: NSComboBox text binding
  • Index(es):
    • Date
    • Thread