1

How can I get the position or frame of an NSStatusBar item?

Kevin
  • 53,822
  • 15
  • 101
  • 132
SOMEONE
  • 5
  • 1
  • 2

1 Answers1

1
  1. There is undocumented [statusBarItem _window] method.
  2. Assign a view to the item, and then use view's window method.

There is no documented way to get it without setting a view. And when status bar item has a view, you have to draw title/image/everything yourself.

hamstergene
  • 24,039
  • 5
  • 57
  • 72