Disabled NSTextView's popup menus

git-svn-id: http://macvim.googlecode.com/svn/trunk@114 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-08-10 10:24:28 +00:00
parent b3c22363a4
commit 556bf0a410
+5 -7
View File
@@ -240,15 +240,13 @@
[self mouseDragged:event];
}
#if 0
- (void)menuForEvent:(NSEvent *)event
- (NSMenu*)menuForEvent:(NSEvent *)event
{
// TODO: Enabling this causes a crash at the moment. Why?
//
// Called when user Ctrl-clicks in the view
[self mouseDown:event];
// HACK! Return nil to disable NSTextView's popup menus (Vim provides its
// own). Called when user Ctrl-clicks in the view (this is already handled
// in rightMouseDown:).
return nil;
}
#endif
- (NSArray *)acceptableDragTypes
{