Re: NSComboBox text binding
Re: NSComboBox text binding
- Subject: Re: NSComboBox text binding
- From: "I. Savant" <email@hidden>
- Date: Fri, 10 Nov 2006 14:31:50 -0500
David:
While I'm not sure if this is exactly what you're looking for, it
sounds like you need to check the "Continuously updates value"
checkbox in your editors' value bindings.
--
I.S.
On Nov 10, 2006, at 2:09 PM, David Catmull wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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