From: Kent Sutherland Date: Fri, 19 Sep 2003 21:24:46 +0000 (+0000) Subject: Forgot to add these files. X-Git-Tag: v1.0~59 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/fd6a48d1ba3824395c105dbad517daf22e6591c6?hp=8d3dd2ae3b78305f66e06d48770ef24222b7a0ef Forgot to add these files. --- diff --git a/CustomMenuTableView.h b/CustomMenuTableView.h new file mode 100755 index 0000000..15c4389 --- /dev/null +++ b/CustomMenuTableView.h @@ -0,0 +1,8 @@ +/* MyTableView */ + +#import + +@interface MyTableView : NSTableView +{ +} +@end diff --git a/CustomMenuTableView.m b/CustomMenuTableView.m new file mode 100755 index 0000000..249e13a --- /dev/null +++ b/CustomMenuTableView.m @@ -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