NSPopover bug when positioning relative to status bar item

Number:rdar://9722231 Date Originated:2011-07-06
Status:Duplicate Resolved:
Product:Mac OS X SDK Product Version:10.7 GM
Classification:Serious bug Reproducible:Always

When you try to position an NSPopover relative to the view of a status bar item, no text input is sent to any controls in the popover's view. Buttons work fine, but no text fields (or buttons with key equivalents) respond to keyboard input. You can programatically set the contents of text fields, but you can't get text fields into focus.

Steps to Reproduce:

See the attached Xcode project. It:

1. Creates an NSStatusItem,
2. Sets a custom view for that status item,
3. Tells the custom view to override mouseDown:, and
4. Tells the popover to show, positioned relative to the custom view when the custom view is clicked on.

Expected Results:

When the popover is shown, the user should be able to get the text field into focus (and if a button has a key equivalent set, that key should fire the action for that button).

Actual Results:

The text field can't come into focus, even when you set it to be the first responder, and buttons with key equivalents don't fire when the relevant key combo is pressed.


Problem occurs on Mac OS X 10.7 Lion, up to and including the GM.



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!