NSTextField: Sending action to target on every keypress
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