Instance Method

setKeyEquivalentFont:size:

Sets by name and size of the font used to draw the key equivalent.

Declaration

- (void)setKeyEquivalentFont:(NSString *)fontName size:(CGFloat)fontSize;

Parameters

fontName

The name of the font to use to draw the key equivalent.

fontSize

The font size to use to draw the key equivalent.

Discussion

This method redisplays the button if necessary. It does nothing if the button doesn’t have a key equivalent associated with it. The default font is the same as that used to draw the title.

See Also

Managing the Key Equivalent

keyEquivalent

The button’s key-equivalent character.

keyEquivalentFont

The font used to draw the button’s key equivalent.

Deprecated
keyEquivalentModifierMask

The mask that identifies the modifier keys for the button's key equivalent.