How do I return children that are not instances of a subclass of NSView?
How do I return children that are not instances of a subclass of NSView?
- Subject: How do I return children that are not instances of a subclass of NSView?
- From: email@hidden
- Date: Mon, 10 Nov 2003 12:56:42 -0500
AXUIElementCopyAttributeValue returns successfully when my Cocoa
application returns an array of objects that are instances of a subclass
of NSView (the call to AXUIElementCopyAttributeValue triggers a call to
accessibilityAttributeValue with attribute set to
NSAccessibilityChildrenAttribute in my Cocoa application).
AXUIElementCopyAttributeValue also returns successfully if the array
contains NSStrings. AXUIElementCopyAttributeValue returns kAXErrorFailure
if the NSArray contains objects which are instances of a subclass of
NSObject. I've implemented the NSAccessibility informal protocol and
NSCoding formal protocol in my class and I still get the error.
I've also tried a NSArray of NSDictionary and that also results in an
error. I'm not surprised by the NSDictionary problem because that class is
not listed in the Cocoa Accessibility documentation.
What makes an object an "accessibility object"?
How do I return children that are not instances of a subclass of NSView?
_______________________________________________
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.