NSTextField value binding and button click
NSTextField value binding and button click
- Subject: NSTextField value binding and button click
- From: "Lieven Dekeyser" <email@hidden>
- Date: Mon, 28 Jan 2008 22:11:55 +0100
Hi all,
In my app, I have a basic login form: username field, password field
and login button. The username and password fields' values are bound
to a custom controller that saves the values after editing. When the
login button is clicked, the username and password are fetched from
the custom controller.
This setup works well for those of us that enter the information by
keyboard, i.e. <type name> <enter> <type password> <enter>, but it
doesn't work when the user clicks the login button while the focus is
still on the password field, in which case the button's action is
called before the password field's value is submitted to the
controller.
I could set the binding to update continuously, but that causes the
custom controller to store the values after every keystroke.
Is there any way to make sure the password field's editor ends when
the user clicks on a button?
Thanks,
Lieven Dekeyser
_______________________________________________
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