Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Make NSTextField register changes immediately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make NSTextField register changes immediately



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.