mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
macOS Accessibility: Return window title for accessibilityTitle property in JuceNSWindowClass
This commit is contained in:
parent
8f3483d532
commit
cae59fa8b2
1 changed files with 6 additions and 0 deletions
|
|
@ -2136,6 +2136,7 @@ struct JuceNSWindowClass : public NSViewComponentPeerWrapper<ObjCClass<NSWindo
|
|||
addMethod (@selector (window:shouldPopUpDocumentPathMenu:), shouldPopUpPathMenu, "B@:@", @encode (NSMenu*));
|
||||
addMethod (@selector (isFlipped), isFlipped, "c@:");
|
||||
|
||||
addMethod (@selector (accessibilityTitle), getAccessibilityTitle, "@@:");
|
||||
addMethod (@selector (accessibilityLabel), getAccessibilityLabel, "@@:");
|
||||
addMethod (@selector (accessibilityTopLevelUIElement), getAccessibilityWindow, "@@:");
|
||||
addMethod (@selector (accessibilityWindow), getAccessibilityWindow, "@@:");
|
||||
|
|
@ -2291,6 +2292,11 @@ private:
|
|||
return false;
|
||||
}
|
||||
|
||||
static NSString* getAccessibilityTitle (id self, SEL)
|
||||
{
|
||||
return [self title];
|
||||
}
|
||||
|
||||
static NSString* getAccessibilityLabel (id self, SEL)
|
||||
{
|
||||
return [getAccessibleChild (self) accessibilityLabel];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue