NSAccessibilityAnnouncementRequestedNotification does not seem to work
NSAccessibilityAnnouncementRequestedNotification does not seem to work
- Subject: NSAccessibilityAnnouncementRequestedNotification does not seem to work
- From: Henri Normak <email@hidden>
- Date: Wed, 24 Jul 2013 10:29:25 +0300
Hello everyone,
I've been trying to take advantage of the new NSAccessibilityAnnouncementRequestedNotification introduced with 10.9, the goal is to post an announcement about an event that is out of scope for VO users (i.e happens without VO getting feedback in another part of the application).
However, it seems like the announcement is never actually delivered. If I am understanding the documentation correctly, then the following code should deliver an announcement saying "Test" to the VO user.
NSDictionary *announcementInfo = @{NSAccessibilityAnnouncementKey : @"Test",
NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh)};
NSAccessibilityPostNotificationWithUserInfo(NSApp, NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
I've tried various priority levels, including not giving a priority at all. What am I missing? Have I misunderstood the element of the notification being NSApp? I've tried running this code on all of the developer previews, without any success.
Thanks,
Henri
--
Henri Normak
_______________________________________________
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