Commit 6eef4747 authored by Aral Balkan's avatar Aral Balkan

Added a note about correct usage of NSAccessibilityAnnouncementRequestedNotification.

parent ac6fc92d
......@@ -1065,6 +1065,9 @@
<buttonCell key="cell" type="roundTextured" title="Yes" bezelStyle="texturedRounded" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="uQp-V1-vRe">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" size="14" name="AvenirNext-Regular"/>
<string key="keyEquivalent" base64-UTF8="YES">
<action selector="yesButtonPressed:" target="AU6-3s-RDq" id="Igb-2a-Wh6"/>
......@@ -18,6 +18,10 @@ import Foundation
func makeAccessibilityAnnouncement(message:String)
// Note: Documentation on NSAccessibilityAnnouncementRequestedNotification is wrong. Correct usage, via NSAccessibility.h: “This notification should be posted for the application element.”
// (Also see and rdar://14543376 )
NSAccessibilityPostNotificationWithUserInfo(NSApp.mainWindow, NSAccessibilityAnnouncementRequestedNotification, [NSAccessibilityAnnouncementKey: message])
......@@ -48,6 +48,9 @@ class StepOneViewController: SetupStepViewController
// Show tip to inform user of the purpose of this step
if viewIsBeingShownForTheFirstTime
// Accessibility
makeAccessibilityAnnouncement("Pick a handle to use on Indie, or enter your existing one.")
self.delegate?.showTip("Pick a handle to use on, or enter your existing one.")
viewIsBeingShownForTheFirstTime = false
......@@ -167,6 +170,7 @@ class StepOneViewController: SetupStepViewController
self.nameTextField.selectable = true
self.nameTextField.editable = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment