Make NSTextField register changes immediately
Make NSTextField register changes immediately
- Subject: Make NSTextField register changes immediately
- From: James Walker <email@hidden>
- Date: Tue, 26 Oct 2010 12:14:03 -0700
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 (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