Instance Property

keyEquivalentWidth

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

Declaration

@property(readonly) CGFloat keyEquivalentWidth;

Discussion

To set the menu item’s key equivalent, use the keyEquivalent property 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.

titleWidth

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

stateImageWidth

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