Re: Making children of StaticText accessible
Re: Making children of StaticText accessible
- Subject: Re: Making children of StaticText accessible
- From: Mike Engber <email@hidden>
- Date: Mon, 21 Apr 2008 10:28:21 -0700
I have a custom view that advertises a StaticText role, for which I
want to make subelement of the text accessible, such as links in the
text.
Is your custom view is a subclass of NSTextView?
The standard NSTextView already supports exposing links and
attachments as children. I think this went in for Tiger.
You can read in the regular Cocoa documentation about links (read up
on attributed strings, specifically look at the attribute
NSLinkAttributeName).
As for other kinds of children, read up about text attachments. Using
custom attachment cells to represent your children is where I'd start.
If you can go the route I'm outlining, then it shouldn't be end up
being too much work.
On the other hand, if your custom view is a not a subclass of
NSTextView then you have a HUGE task in front of you. Text has one of
the more sophisticated accessibility implementations. Note - there are
all those parameterized attributes that give of font/style info.
-ME
_______________________________________________
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