• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
text attachments in NSTextView and NSAccessibility/VoiceOver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

text attachments in NSTextView and NSAccessibility/VoiceOver


  • Subject: text attachments in NSTextView and NSAccessibility/VoiceOver
  • From: Martin Wierschin <email@hidden>
  • Date: Fri, 07 Jun 2013 17:57:02 -0700

Hi All,

I'm working on enhancing accessibility support for a text editor and have run into problems when it comes to handling text attachments.

Basically I have an NSTextStorage with some text and custom attachments (subclass of NSTextAttachment) which is all displayed in an NSTextView. The basic text editing works fine, eg: VoiceOver reads the plain text entered in the text view, etc. As a starting point for the attachment customization I'm just trying to have VoiceOver read a custom description when an attachment is selected, but so far that's failed.

In TextEdit I observe that VoiceOver announces something like "embedded attached image highlighted" when I select an inserted image. With my custom subclass it just announces "highlighted". In my NSTextAttachmentCell subclass I've overridden the accessibility methods to return values that match what Accessibility Inspector tells me TextEdit is using, eg: NSAccessibilityImageRole, NSAccessibilityTextAttachmentSubrole, etc, as well as added my custom description and title. Apple's Accessibility Inspector reports that my attributes match those provided by TextEdit, so why doesn't VoiceOver behave the same?

Is there something I've missed? What should I be doing? I notice NSTextView is doing some pretty intense things with the attributed string it provides the parameterized accessibility methods (returning _NSFullyBakedAXMutableAttributedString and NSAccessibilityReparentingCellProxy attribute values) and I'm hoping I don't have to get involved in any of that.

Thank you for any help or guidance!
~Martin


 _______________________________________________
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

  • Follow-Ups:
    • Re: text attachments in NSTextView and NSAccessibility/VoiceOver
      • From: Josh Scotland <email@hidden>
  • Prev by Date: Voice Over and PDFKit in 10.8.4
  • Next by Date: Re: Implementing a custom List
  • Previous by thread: Re: Voice Over and PDFKit in 10.8.4
  • Next by thread: Re: text attachments in NSTextView and NSAccessibility/VoiceOver
  • Index(es):
    • Date
    • Thread