• 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: Sending action to target on every keypress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField: Sending action to target on every keypress


  • Subject: NSTextField: Sending action to target on every keypress
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Wed, 7 Feb 2007 11:24:38 -0800

Hi all,

I want a validation routine to run for every character someone types into an NSTextField. The validation routine determines if an Okay button gets enabled. It is not good enough for me to wait until the text field loses focus, because that would require the user to click into another field or hit the tab key before the Okay button becomes clickable.

I've been trying different versions of setContinuous: and sendActionOn: to no avail. The documentation tells me these are very mouse-event-centric, not keyboard.

Am I missing something obvious here? I'd think something like this would be common.

Thanks,

Mike

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Sending action to target on every keypress
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Conditional OR for Enabled binding
  • Next by Date: Re: NSTextField: Sending action to target on every keypress
  • Previous by thread: Re: How do I display a sheet as soon as the main window has displayed
  • Next by thread: Re: NSTextField: Sending action to target on every keypress
  • Index(es):
    • Date
    • Thread