From 556bf0a410dc84d38446c810eaf4c5b6405b919c Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Fri, 10 Aug 2007 10:24:28 +0000 Subject: [PATCH] Disabled NSTextView's popup menus git-svn-id: http://macvim.googlecode.com/svn/trunk@114 96c4425d-ca35-0410-94e5-3396d5c13a8f --- MMTextView.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/MMTextView.m b/MMTextView.m index 040d50647a..6e6946083e 100644 --- a/MMTextView.m +++ b/MMTextView.m @@ -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 {