X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=KeyInputTextView.h;h=485af1cae0d87d95e145f8acc17a4edb456bc401;hp=69d8f10f2d82591e984fdfdc743b53e02e21bd19;hb=1bb3f553caac2b6b74380bd20ddc4bb1ff22abb2;hpb=530009447c5bbd360ac5023979cffc6d32a28df3 diff --git a/KeyInputTextView.h b/KeyInputTextView.h index 69d8f10..485af1c 100644 --- a/KeyInputTextView.h +++ b/KeyInputTextView.h @@ -1,28 +1,24 @@ // -// KeyInputTextField.h +// KeyInputTextView.h // Enjoy // // Created by Sam McCall on 5/05/09. // Copyright 2009 University of Otago. All rights reserved. // -#import @class TargetController; -@interface KeyInputTextView: NSTextView { - IBOutlet NSWindow* window; - IBOutlet TargetController* targetController; - BOOL hasKey; - int vk; - NSString* descr; - BOOL enabled; +@interface KeyInputTextView : NSTextField { + IBOutlet NSWindow *window; + IBOutlet TargetController *targetController; } -@property(readonly) BOOL hasKey; -@property(readwrite) int vk; -@property(readonly) NSString* descr; -@property(readwrite) BOOL enabled; +@property (assign) int vk; +@property (readonly) BOOL hasKey; +@property (assign) BOOL enabled; --(void) clear; ++ (NSString *)stringForKeyCode:(int)keycode; + +- (void)clear; @end