• 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
Re: Suppling title ui element for an edit text control?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppling title ui element for an edit text control?


  • Subject: Re: Suppling title ui element for an edit text control?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Tue, 24 Jan 2006 22:25:58 +0100

I'm not really sure what's happening, but I suspect it's because the EditUnicodeText control delegates its accessibility support to a separate HIObject that is provided by the MLTE object that implements the text-editing capability. It's possible that the auxiliary accessibility attributes are being ignored when they're assigned directly to the EditUnicodeText control. That would be a bug, so please file a bug about this and let us know the Radar number.

Hi Eric,

you were absolutely right about that. If I use the following work around, I'm able to get the title ui element working despite Accessibility Inspector does not show it, VoiceOver properly speaks it.

    cfstr = HIObjectCopyClassID( hiView );

    if( cfstr )
    {
        if( CFStringCompare( cfstr,
                             kHITextFieldClassID,
                             kNilOptions ) == kCFCompareEqualTo
        )
        {
            txnObject = HITextViewGetTXNObject( (HIViewRef)hiView );
            if( txnObject )
            {
                //  replace hiView with Edit Unicode Text adaptor HIObject
                err = TXNGetAccessibilityHIObject( txnObject, &hiView );
            }
            else
            {
                err = -1;
            }
        }
        CFRelease( cfstr );
    }

Should I update the bug with this work around?

Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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


References: 
 >Suppling title ui element for an edit text control? (From: Tomas Zahradnicky <email@hidden>)
 >Re: Suppling title ui element for an edit text control? (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Resend: MacOS Accessibility Questions (Mark Thomas)
  • Next by Date: getting selected text of a textview
  • Previous by thread: Re: Suppling title ui element for an edit text control?
  • Next by thread: Resend: MacOS Accessability Questions
  • Index(es):
    • Date
    • Thread