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 keystatus.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 whythat 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com