Re: How can text field validation be triggered?
Re: How can text field validation be triggered?
- Subject: Re: How can text field validation be triggered?
- From: email@hidden
- Date: Tue, 18 Nov 2003 15:23:23 -0500
It is a Cocoa application. It knows validation is required when the
control delegate receives a controlTextDidChange: notification. This works
for tab key presses and mouse clicks.
I've also created a test application that implements many of the other
delegate methods (the ones from the NSControlSubclassDelegate category).
None of these messages reached my applications in my first approach.
I tried using AXUIElementPostKeyboardEvent to post tab key down and up
events. When I do this, my delegate gets control:textView:doCommandSelect
messages, but none of the other messages.
I'm going to try using AXUIElementPostKeyboardEvent to instead of setting
the text field value directly.
Guy Fullerton <email@hidden>
Sent by: email@hidden
11/18/03 01:24 PM
To: Philip Kania/471960/US/EKC@Kodak
cc: <email@hidden>
Subject: Re: How can text field validation be triggered?
On 11/18/03 9:01 AM, "email@hidden" <email@hidden>
wrote:
>
Right, but I want to simulate hitting the tab key.
Can you give us more details on exactly how your app knows validation is
required? Is the app Carbon or Cocoa? What events do you watch for (or
methods do you override/implement) to know when the focus is leaving the
edit field? How do you deal with validation when focus changes for a
reason
other than the tab key, such as if the user clicks in another focusable
widget?
>
Mike Engber <email@hidden>
>
11/18/03 11:58 AM
>
>
>
To: Philip Kania/471960/US/EKC@Kodak
>
cc: email@hidden
>
Subject: Re: How can text field validation be triggered?
>
>
>
Text fields have a confirm action that simulates hitting enter.
>
>
-ME
>
>
On Nov 18, 2003, at 8:29 AM, email@hidden wrote:
>
>
> I've tried setting the text field value and changing the focused
>
> element,
>
> but this does not trigger the normal text field validation in our
>
> application. How can we set up the validation in our application so
>
> users
>
> of the accessibility API will get the benefit of our validation?
>
> _______________________________________________
>
> accessibility-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/accessibility-dev
>
> Do not post admin requests to the list. They will be ignored.
>
_______________________________________________
>
accessibility-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.