accessibilityIdentifier on NSPopover is silently ignored
| Originator: | ytpete | ||
| Number: | rdar://26380483 | Date Originated: | 5/19/2016 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | |
| Classification: | Reproducible: |
Summary: If I set accessibilityIdentifier programmatically on an NSPopover (or on the NSView which its contentViewController is associated with), it does not show up in Accessibility Inspector when I mouse over the popover. Steps to Reproduce: 1. Start with the sample from https://developer.apple.com/library/mac/samplecode/Popover/Introduction/Intro.html (Version 1.2, 2015-12-17) 2. In MyViewController createPopover, add this line after the popover was created: self.myPopover.accessibilityIdentifier = @"foo1"; 3. In Main.storyboard, select the PopoverView node and use the Identity Inspector tab of the right-hand panel to set Accessibility Identity > Identifier to "foo2" 4. Run the app 5. Launch the OS X "Accessibility Inspector" app 6. In the popover sample app, click the button to open the popover 7. Mouse over a blank part of the popover Expected Results: Under Attributes, accessibilityIdentifier has the value "foo1" _or_ "foo2". accessibilityRole shows "AXPopover" however, so it's clear you are targeting the popover for inspection. Actual Results: accessibilityIdentifier is not listed (this is the behavior you see normally when no identifier has been set) Version: OS X 10.11.4 Xcode 7.3.1
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!