I have an NSTextField with its value bound to a numeric property, and I'd like that value to change as soon as any typing occurs, without forcing the user to type enter or tab. Here's what I've tried:

Check the "Continuous" control attribute.  No effect.

Check "Validates Immediately" on the binding.  No effect.

In a controlTextDidChange: delegate method, call validateEditing. No effect.

In a controlTextDidChange: delegate method, send endEditing: to the text field cell. This does make the value change, but also makes the field lose focus.

I could make the controlTextDidChange: delegate method get the value and set the property, but at that point I might as well not have a binding at all.
--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>
_______________________________________________

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

Reply via email to