Instance Property

menuBarHeight

The menu bar height for the main menu in pixels.

Declaration

@property(readonly) CGFloat menuBarHeight;

Discussion

For the main menu, the value of this property is a value of type GCFloat, indicating the height of the menu bar in pixels. For any other menu, the value of this property is 0.

This property supersedes the menuBarHeight class method of the NSMenuView class.

See Also

Managing the Menu Bar

+ menuBarVisible

Returns a Boolean value that indicates whether the menu bar is visible.

+ setMenuBarVisible:

Sets whether the menu bar is visible and selectable by the user.