Post

Replies

Boosts

Views

Activity

Reply to Live regions in a desktop application?
I'm not having any luck in getting it to announce any updates. What am I doing wrong? Using Big Sur with a Qt application. My view seems to be valid, it is the application's main window and comes out to be QNSView: 0x7f9f299bec10; QCocoaWindow(0x7f9f299beb00, window=QWidgetWindow(0x7f9f299be5c0, name="main_windowWindow")). Code is: NSView* view = reinterpret_cast<NSView*>(mudlet::self()->effectiveWinId()); if (!view) { qDebug() << "no view found"; } else { qDebug() << view; } NSString* msg = @"Hello World!"; NSDictionary *announcementInfo = @{ NSAccessibilityAnnouncementKey : msg, NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh), }; NSAccessibilityPostNotificationWithUserInfo(view, NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
Jun ’22
Reply to Live regions in a desktop application?
Ah, got it to work - just needed NSString* msg = @"Hello World!"; NSDictionary *announcementInfo = @{ NSAccessibilityAnnouncementKey : msg, NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh), }; NSAccessibilityPostNotificationWithUserInfo([NSApp mainWindow], NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
Jun ’22
Reply to Live regions in a desktop application?
Well that looks like just what I need. Thanks! I'll dig into it.
Replies
Boosts
Views
Activity
Jun ’22
Reply to Live regions in a desktop application?
I'm not having any luck in getting it to announce any updates. What am I doing wrong? Using Big Sur with a Qt application. My view seems to be valid, it is the application's main window and comes out to be QNSView: 0x7f9f299bec10; QCocoaWindow(0x7f9f299beb00, window=QWidgetWindow(0x7f9f299be5c0, name="main_windowWindow")). Code is: NSView* view = reinterpret_cast<NSView*>(mudlet::self()->effectiveWinId()); if (!view) { qDebug() << "no view found"; } else { qDebug() << view; } NSString* msg = @"Hello World!"; NSDictionary *announcementInfo = @{ NSAccessibilityAnnouncementKey : msg, NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh), }; NSAccessibilityPostNotificationWithUserInfo(view, NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
Replies
Boosts
Views
Activity
Jun ’22
Reply to Live regions in a desktop application?
Ah, got it to work - just needed NSString* msg = @"Hello World!"; NSDictionary *announcementInfo = @{ NSAccessibilityAnnouncementKey : msg, NSAccessibilityPriorityKey : @(NSAccessibilityPriorityHigh), }; NSAccessibilityPostNotificationWithUserInfo([NSApp mainWindow], NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
Replies
Boosts
Views
Activity
Jun ’22
Reply to VoiceOver announcements skipping to the latest one
I see that VoiceOver on iOS raises UIAccessibilityAnnouncementDidFinishNotification, which makes it possible to queue announcements - but nothing like that seems to be available for macOS. I'd love a solution to work around this, it is a real blocker.
Replies
Boosts
Views
Activity
Jul ’22
Reply to Live regions in a desktop application?
Thanks a lot for your help - this improvement made it to the latest update of Mudlet, an open-source MUD client, which is now accessible to visually impaired folks.
Replies
Boosts
Views
Activity
Apr ’23
Reply to Run macOS application in Github Actions
I am wondering how to run a macOS application in a headless environment where no display is present. This seems like the right forum no?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23