Instance Property

imageWidth

The width of the image associated with the menu item.

Declaration

@property(readonly) CGFloat imageWidth;

Discussion

The width of the image is measured in points. You can associate an image with a menu item using the setImage: 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.

titleWidth

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

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.