Re: Custom accessible Cocoa controls
Re: Custom accessible Cocoa controls
- Subject: Re: Custom accessible Cocoa controls
- From: Ryan McGann <email@hidden>
- Date: Mon, 14 Apr 2003 23:51:22 -0700
On Monday, April 14, 2003, at 09:03 AM, Mike Engber wrote:
I can't use NSMatrix for this control because of the way it's drawn,
NSMatrix doesn't have the appropriate geometry.
I've seen this control successfully implemented as an NSMatrix. That
approach should be workable if you want to go that route.
Unfortunately, our control has similar behavior, but not similar
behavior. I'd like to give it the same look and feel, but not in this
revision.
I tried implementing the various areas of the control as children,
but ran into the same problems (e.g. what objects do I put in the
children array that's returned from accessibilityAttributeValue?)
You need to return an object that implement the accessibility protocol
(see NSAccessibility.h)
They don't have to be NSViews or NSCells. NSViews and NSCells already
implement the Accessibility Protocol - so that makes returning them
easier, but it's not a requirement and there are many occasions, like
your case, when there is no existing object you can return.
Below is an idea you might find useful. I have successfully used this
approach so I can help with further specifics if needed.
Thanks, I'll give this a try.
Ryan
There are 10 kinds of people in the world: those that can understand
binary, and those that can't.
_______________________________________________
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.