macosmenubarosx-leopard

Height of the apple menubar


I was just wondering how to get the height of the apple menubar, in pixels (the one always on top)

(My screen size is 1200 x 800) i was wondering what it would be excluding the menubar.


Solution

  • And if you need to know at runtime, use -[NSMenu menuBarHeight].