//
-// KeyInputTextField.h
+// KeyInputTextView.h
// Enjoy
//
// Created by Sam McCall on 5/05/09.
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
@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