• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField value binding and button click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTextField value binding and button click
      • From: Quincey Morris <email@hidden>
    • Re: NSTextField value binding and button click
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Serious problems in Interface Builder (bug?). Please help!
  • Next by Date: re: Subclassing NSAtomicStore
  • Previous by thread: View Loading Performace Question
  • Next by thread: Re: NSTextField value binding and button click
  • Index(es):
    • Date
    • Thread