setFont:

Sets the font used to display the button's title and alternate title.

Declaration

- (void)setFont:(NSFont *)fontObj

Parameters

fontObj

The font object specifying the font to use.

Overview

This method does nothing if the button has no title or alternate title.

If the button cell has a key equivalent, its font is not changed, but the key equivalent’s font size is changed to match the new title font.

See Also

Setting Titles

- alternateMnemonic

Returns the character in the alternate title that’s marked as the “keyboard mnemonic.”

Deprecated
- alternateMnemonicLocation

Returns an unsigned integer indicating the character in the alternate title that’s marked as the “keyboard mnemonic.”

Deprecated
alternateTitle

The string displayed by the button when it’s in its alternate state.

attributedAlternateTitle

The title displayed by the button when it’s in its alternate state, as an attributed string.

attributedTitle

The title displayed by the button when it’s in its normal state as an attributed string.

- setAlternateMnemonicLocation:

Sets the character in the alternate title that should be the “keyboard mnemonic.”

Deprecated
- setAlternateTitleWithMnemonic:

Sets the title the button displays when it’s in its alternate state to the given string with an embedded mnemonic.

Deprecated
- setTitleWithMnemonic:

Sets the title the button displays when it’s in its normal state to the given string with an embedded mnemonic.

Deprecated
title

The title displayed on the button when it’s in its normal state.