X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJKeyInputField.h;h=c32e16c50d16a6b6c304423c6d55afcd9294c0f3;hp=9a7a3af9863cd3b86322ec8ea0cf856faf413b4e;hb=794a6e8c99be447b2ebc2b5510f7bf8ddeb4d75d;hpb=ef24a9ad6b36ca8a47c878c02b79b30e43933197 diff --git a/Classes/NJKeyInputField.h b/Classes/NJKeyInputField.h index 9a7a3af..c32e16c 100644 --- a/Classes/NJKeyInputField.h +++ b/Classes/NJKeyInputField.h @@ -7,11 +7,11 @@ #import -extern CGKeyCode NJKeyInputFieldEmpty; +extern const CGKeyCode NJKeyInputFieldEmpty; @protocol NJKeyInputFieldDelegate; -@interface NJKeyInputField : NSTextField +@interface NJKeyInputField : NSControl // An NJKeyInputField is a NSTextField-like widget that receives // exactly one key press, and displays the name of that key, then // resigns its first responder status. It can also inform a @@ -20,7 +20,7 @@ extern CGKeyCode NJKeyInputFieldEmpty; + (NSString *)stringForKeyCode:(CGKeyCode)keyCode; // Give the string name for a virtual key code. -@property (nonatomic, weak) IBOutlet id delegate; +@property (nonatomic, weak) IBOutlet id delegate; @property (nonatomic, assign) CGKeyCode keyCode; // The currently displayed key code, or NJKeyInputFieldEmpty if no @@ -37,7 +37,6 @@ extern CGKeyCode NJKeyInputFieldEmpty; @protocol NJKeyInputFieldDelegate -@optional - (void)keyInputField:(NJKeyInputField *)keyInput didChangeKey:(CGKeyCode)keyCode; - (void)keyInputFieldDidClear:(NJKeyInputField *)keyInput;