NSPopover ignores acceptsFirstResponder of contentView
| Originator: | me | ||
| Number: | rdar://10666891 | Date Originated: | 09-Jan-2012 06:00 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7.3 (11D50) |
| Classification: | UI/Usability | Reproducible: | Always |
When an NSPopover pops up, it makes its content view the first responder of its parent window. Often this is desirable, so the user can tab to any controls in the popover. However, we have a use-case for NSPopover as a transient label (similar to a tool-tip or expansion frame), which is displayed on mouse-over (without animation). The user can be editing a text field in the primary window and trigger the popover with a mouse movement, in which case we don't want to change the first responder. The only way I've found to suppress the first responder changing is to override -makeFirstResponder: on the primary window. The popover makes its content view the first responder despite my returning NO from -acceptsFirstResponder. I expected NSPopover to respect that flag.
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!