How can I get the position or frame of an NSStatusBar
item?
Asked
Active
Viewed 738 times
1
-
Legal solution is in [this answer](http://stackoverflow.com/a/11520308/956170). – Igor Bulgakov Sep 06 '12 at 21:40
1 Answers
1
- There is undocumented
[statusBarItem _window]
method. - 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