I am using hidden NSButtons in my OS X app to provide keyboard shortcuts. How can I hide these views from the accessibility tree? I have tried this:
button.accessibilityElement = NO;
button.accessibilityEnabled = NO;
button.accessibilityLabel = @"Test";
VoiceOver will read "test" so it is clearly using the properties I am setting. When I set accessibilityEnabled to NO, it reads out "dimmed" as well for each button.
How can I get VoiceOver to completely ignore these views?