NSComboBox text binding
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