A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated. Returns the character in the menu item title that appears underlined for use as a mnemonic. (Deprecated in Mac OS X v10.6.)
- (NSString *)mnemonic
If there is no mnemonic character, returns an empty string.
NSMenuItem.hDeprecated. Returns the position of the underlined character in the menu item title used as a mnemonic. (Deprecated in Mac OS X v10.6.)
- (NSUInteger)mnemonicLocation
The position is the zero-based index of that character in the title string. If the receiver has no mnemonic character, returns NSNotFound.
NSMenuItem.hDeprecated. Sets the character of the menu item title at location that is to be underlined. (Deprecated in Mac OS X v10.6.)
- (void)setMnemonicLocation:(NSUInteger)location
An integer index into the character array of the title. location must be from 0 to 254.
This character identifies the access key by which users can access the menu item.
NSMenuItem.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-29)