xcode - NSStatusItem app focus -
how can menubar application accomplish same behaviours 1password or dropbox:
clicking menu bar icons or popovers not steal focus, e.g. while in illustration textedit , open 1password/dropbox, blinking cursor disappears window not go background, yet can type 1password's text field. even though didn't take focus in first place, disappear when click applicationi figured out how mouse on works in dropbox popover table view using nstrackingarea options mouseenteredandexited, assumeinside, , activealways.
i trying same behaviour work in nspopover opens nsstatusitem.
i found workaround now. able same behaviour using non-activating nspanel window level kcgpopupmenuwindowlevelkey
, had override canbecomekeywindow
homecoming true.
unfortunately haven't found way yet nspopover behave way since it's not subclass of nswindow.
xcode osx nsstatusitem nspopover
No comments:
Post a Comment