Instance Method

performMnemonic:

Handle a mnemonic.

Declaration

- (BOOL)performMnemonic:(NSString *)string;

Parameters

string

A string containing mnemonic character code or codes.

Discussion

Orverride to respond to mnemonics. If the character code or codes in string match the receiver’s mnemonic, the receiver should perform the mnemonic and return YES. The default implementation does nothing and returns NO. Mnemonics are not supported in macOS.

See Also

Responding to Key Events

- keyDown:

Informs the receiver that the user has pressed a key.

- keyUp:

Informs the receiver that the user has released a key.

- interpretKeyEvents:

Handles a series of key events.

- performKeyEquivalent:

Handle a key equivalent.

- flushBufferedKeyEvents

Clears any unprocessed key events when overridden by subclasses.