Forgot to add these files.
authorKent Sutherland <ksuther@ithinksw.com>
Fri, 19 Sep 2003 21:24:46 +0000 (21:24 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Fri, 19 Sep 2003 21:24:46 +0000 (21:24 +0000)
CustomMenuTableView.h [new file with mode: 0755]
CustomMenuTableView.m [new file with mode: 0755]

diff --git a/CustomMenuTableView.h b/CustomMenuTableView.h
new file mode 100755 (executable)
index 0000000..15c4389
--- /dev/null
@@ -0,0 +1,8 @@
+/* MyTableView */
+
+#import <Cocoa/Cocoa.h>
+
+@interface MyTableView : NSTableView
+{
+}
+@end
diff --git a/CustomMenuTableView.m b/CustomMenuTableView.m
new file mode 100755 (executable)
index 0000000..249e13a
--- /dev/null
@@ -0,0 +1,15 @@
+#import "MyTableView.h"
+#import "PreferencesController.h"
+
+@implementation MyTableView
+
+- (void)keyDown:(NSEvent *)event
+{
+    if ([[event characters] characterAtIndex:0] == '\177') {
+        [[PreferencesController sharedPrefs] deletePressedInTableView:self];
+    } else {
+        [super keyDown:event];
+    }
+}
+
+@end