Accessibility Problems...
Accessibility Problems...
- Subject: Accessibility Problems...
- From: Joseph Kelly <email@hidden>
- Date: Thu, 7 Sep 2006 16:48:09 -0700
I am doing a bit of research into making a Cocoa application
accessible. I rely heavily on custom views whose content is rendered
using a cross platform api (wrappers around NSBezierPath and GDI etc)
-- basically, much of the sub-content is not broken down into
NSViews, therefore I've created an accessibility object class (called
MCAccessible, which in theory will wrap a C++ object generated by my
data model etc. ) modeled very loosely on Dicey.xcodeproj Die-
accessibility.h/.m.
I've set up a test, simply instantiate one of my objects which is
inside one of my custom NSViews. From Acc. Inspector, when I move the
mouse over the specified area, the attribute list shrinks drastically
and the child and parents are <NULL> and the role is AXUnkown or
whatever. So I set some breakpoints on my accessibility methods and
debug it.
After accessibilityAttributeNames:, it sends a
accessibilityAttributeValue: message asking for AXParent. After it
returns from that (I return the parent view) my object receives an -
indexOfObject:(id)thingie message, and when I override this and set a
breakpoint, the stack trace looks like:
#0 0x004159d2 in -[MCAccessible indexOfObject:] at MCAccessible.mm:61
#1 0x93408d35 in -[NSObject(NSAccessibilityUIElementSpecifier)
_accessibilityUIElementPathForChild:]
#2 0x93408455 in -[NSObject(NSAccessibilityUIElementSpecifier)
_accessibilityUIElementPath]
#3 0x934083b7 in _NSAccessibilitySpecifierForUIElement
#4 0x934330dd in NSAccessibilityCreateAXUIElementRef
#5 0x935a343f in ConvertOutgoingValue
#6 0x935a3ec4 in CopyAppKitUIElementAttributeValueNoCatch
#7 0x935a40ad in CopyAttributeValue
#8 0x9180ab18 in _AXXMIGCopyAttributeValue
#9 0x9181023b in _XCopyAttributeValue
#10 0x917de812 in mshMIGPerform
#11 0x9082a66d in CFRunLoopRunSpecific
#12 0x90829b0e in CFRunLoopRunInMode
#13 0x92de8bef in RunCurrentEventLoopInMode
#14 0x92de82fd in ReceiveNextEventCommon
#15 0x92de8154 in BlockUntilNextEventMatchingListInMode
#16 0x9328e465 in _DPSNextEvent
#17 0x9328e056 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#18 0x93287ddb in -[NSApplication run]
#19 0x9327bd2f in NSApplicationMain
#20 0x00002bc6 in main at main.m:13
Additionally, thingie == self (!)
For kicks, I return 1 or 0 or NSNotFound, but whatever I do, none of
my other Acc. methods get called after that.
I am hoping this is symptomatic of something obvious, but if it's
not, I can provide lots more information.
10.4.7 Intel, targeting 10.4 i386 and 10.3 ppc.
Thanks in advance,
Joseph K.
_______________________________________________
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