Instance Method

keyEquivalentRectForBounds:

Returns the rectangle into which the menu item’s key equivalent should be drawn.

Declaration

- (NSRect)keyEquivalentRectForBounds:(NSRect)cellFrame;

Parameters

cellFrame

A rectangle that defines the bounds of the receiver.

Return Value

The returned rectangle is based on cellFrame but encompasses only the area to be occupied by the key equivalent.

See Also

Getting the Menu Item’s Drawing Rectangle

- stateImageRectForBounds:

Returns the rectangle into which the menu item’s state image should be drawn.

- titleRectForBounds:

Returns the rectangle into which the menu item’s title should be drawn.