Re: Ignored windows are not 100% ignored?
Re: Ignored windows are not 100% ignored?
- Subject: Re: Ignored windows are not 100% ignored?
- From: Mike Engber <email@hidden>
- Date: Wed, 7 Jun 2006 13:53:36 -0700
On Jun 7, 2006, at 12:46 PM, Håkan Waara wrote:
Hiding part of the hierarchy requires ensuring nothing returns
anything in that hierarchy - e.g. as children, from hit testing,
focus testing, any other attributes whose value is a ui element, ...
Ah right, so if I return an empty array for the AXChildren attr, it
will work right?
It's a first step - it will keep anyone from accessing those children
by asking their parent for them.
But, you have to find and prevent _all_ the other ways they may be
exposed. In the case of a window you need to make sure the window
itself isn't returned _and_ that nothing it contains is returned.
E.g. if a text field in the window has focus the AXFocusedUIElement
attribute would return it.
Hit testing and focus testing are two ways an element can be
returned. Overriding these on your window (to return nil) should do
the trick:
- (id)accessibilityHitTest:(NSPoint)point;
- (id)accessibilityFocusedUIElement;
You'll need to subclass NSApp so you can override
accessibilityAttributeValue in order to ensure it never returns your
hidden window via:
AXWindowsAttribute
AXMainWindowAttribute
AXFocusedWindowAttribute
There might be some other cases I'm not thinking of, but that should
be a good start.
-ME
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden