What types to return in accessibilityAttributeValue?
What types to return in accessibilityAttributeValue?
- Subject: What types to return in accessibilityAttributeValue?
- From: Felipe Monteiro de Carvalho <email@hidden>
- Date: Sat, 17 Mar 2012 11:10:17 +0100
Hello,
I am implementing accessibility for the Cocoa backend of a
cross-platform framework and I understand that I just need to override
some routines in my objects, for example:
function accessibilityAttributeValue(attribute: NSString): id; override;
But I have many doubts and I could not find answers in the documentation.
1-> In the docs for the accessibility protocol there is no place
saying which types should I return for given parameters. For example:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Protocols/NSAccessibility_Protocol/Reference/Reference.html
NSAccessibilitySizeAttribute
Should I return a NSSize? Any small examples?
2-> NSAccessibilityChildrenAttribute if my child objects are not NS
controls at all, they are all from my own framework and essentially
don't exist for Cocoa. Should I then create a NSObject, override the
accessibility methods and return an array of NSObjects?
3->NSAccessibilityChildrenAttribute I think that the inherited routine
will already create an array, even if empty, correct? So it creates a
NSArray or a NSMutableArray?
thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
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