• 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: Post notification and delay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Post notification and delay


  • Subject: Re: Post notification and delay
  • From: "Drake, Ted" <email@hidden>
  • Date: Tue, 23 Jul 2013 17:02:18 +0000
  • Thread-topic: Post notification and delay

Thank you Chris and Doug for the feedback.
Ted


From: Doug Russell <email@hidden>
Date: Tuesday, July 23, 2013 12:59 PM
To: Ted Drake <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: Post notification and delay

This came up once before and delay was the official recommendation:

http://lists.apple.com/archives/accessibility-dev/2013/Jan/msg00005.html

On Jul 23, 2013, at 8:50 AM, "Drake, Ted" <email@hidden> wrote:

I need to get some advice for a developer. He's having trouble getting UI Post notification working correctly. I'm pasting his question below. Is using dispatch_after block required to get the timing correct?

----
 In many situations after a VO-modal screen/view disappears, I want to force the VO focus to be back on the originating control, rather than the default top-left-most control.  For example: activating a button produces a popover to select a setting.  Once that setting is selected the VO focus should go back to the original button.

The only solution I've found to reliably do this is to call UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, <#originating control#>), but I typically have to wrap it in a delay, such as a dispatch_after block.  Otherwise the my UIAccessibilityPostNotification is interrupted for the OS to select it's own default VO focus.

I'm wondering if these delays are the best way to accomplish this, or if there is something else (something more deterministic) I should be doing?
-----

Thank you

Ted Drake
Intuit Accessibility
_______________________________________________
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

 _______________________________________________
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: 
 >Re: Post notification and delay (From: Doug Russell <email@hidden>)

  • Prev by Date: Re: Post notification and delay
  • Next by Date: List of localized VoiceOver strings
  • Previous by thread: Re: Post notification and delay
  • Next by thread: List of localized VoiceOver strings
  • Index(es):
    • Date
    • Thread