Instance Property

titleWidth

The width of the menu item’s text, measured in points.

Declaration

@property(readonly) CGFloat titleWidth;

Discussion

To set the menu item’s text, use the setTitle: method of NSMenuItem.

See Also

Calculating the Size of a Menu Item

- calcSize

Calculates the minimum required width and height of the receiver’s menu item.

needsSizing

A Boolean value indicating whether the size of the menu needs to be calculated.

imageWidth

The width of the image associated with the menu item.

keyEquivalentWidth

The width of the menu item’s key equivalent string.

stateImageWidth

The width of the image used to indicate the state of the menu item.