Instance Method

setAlternateMnemonicLocation:

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

Declaration

- (void)setAlternateMnemonicLocation:(NSUInteger)location;

Parameters

location

An unsigned integer indicating the character in the alternate title that should be marked as the "keyboard mnemonic." If you don’t want the alternate title to have a keyboard mnemonic, specify a location of NSNotFound.

Discussion

Mnemonics are not supported in macOS.

The setAlternateMnemonicLocation: method doesn’t cause the button cell to be redisplayed.

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.

- setAlternateTitleWithMnemonic:

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

Deprecated
- setFont:

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

- 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.