Re: Continuous NSTextField not updating bound value continuously?
Re: Continuous NSTextField not updating bound value continuously?
- Subject: Re: Continuous NSTextField not updating bound value continuously?
- From: Jason Foreman <email@hidden>
- Date: Tue, 8 Sep 2009 13:18:37 -0500
On Sep 8, 2009, at 1:05 PM, Doug Knowles wrote:
Hi,
I have a text field (two, actually) bound to a string value in a
controller
object, and I'd like to validate the value on each keystroke so that
I can
enable other controls appropriately depending on the content of the
field.
The text fields are set to "continuous" updating in IB, and I have
confirmed
this by checking the fields' "isContinuous" in the code. However,
the bound
value is not updated on every keystroke, but only when the field
loses key
status.
The only thing that I can think is different between this case and
most
other uses is that the window is application modal, but I can't
think of why
that would affect continuous updating.
Any thoughts of something else I might be missing?
It sounds like you've set the "Continuous" property of the text
field. When using bindings, you need to set the "Continuously Updates
Value" property of the binding in order to get the effect you're
looking for. Can you verify that you've set the property on the
binding and not just the text field?
Jason
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden