Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimum requirements for a NSAccessibility object?




On Aug 24, 2006, at 9:08 AM, Håkan Waara wrote:

3rd party apps that use the accessibility APIs have no ability to peak at the NSView hierarchy. They only see the accessibility hierarchy you present. So if you've taken (enough) control over what NSApp presents they'll only see what you want them to see.


Unfortunately, since we're (at least aiming to be) an embeddable NSView, I can't have any control over the NSWindow or the NSApp. All I can control is the topmost NSView, and everything below it. Is that sufficient?


Since you are able to control what you report for the accessibility hierarchy from that embeddable NSView on down, you should be able to report correctly.  However, you will need to also override accessibility methods in the plug-in views that you are using, so they correctly report their parents as your accessibility objects, instead of NSView's default, which is reporting the accessibility parent/child relationship according to the view hierarchy.

Using the NSAccessibility protocol you can expose whatever structure you wish to assistive apps (3rd party apps that use the accessibility APIs).  

-James



--------------------------------------------------
James Dempsey
AppKit Engineering
Apple



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden

This email sent to email@hidden

References: 
 >Minimum requirements for a NSAccessibility object? (From: Håkan Waara <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: James Dempsey <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: Håkan Waara <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: James Dempsey <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: Håkan Waara <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: Mike Engber <email@hidden>)
 >Re: Minimum requirements for a NSAccessibility object? (From: Håkan Waara <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.