characters
キーイベントの文字を返します
解説
キーイベントの文字を返します。
返り値
( NSString * )
文字
引数
フレームワーク
ApplicationKit
クラス
NSEvent
Instance Methods
使用可能
10.0
参照
- charactersIgnoringModifiers
+ keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifier:isARepeat:keyCode:
例文
#import "MyButton.h" @implementation MyButton - (BOOL)performKeyEquivalent:(NSEvent *)anEvent { [self setTitle:[anEvent characters]]; return YES; } @end