aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m24
1 files changed, 15 insertions, 9 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index 10274d73..e47a128a 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -34,10 +34,24 @@
#import "SPConstants.h"
@interface NSTableView (MovingSelectedRow)
+
- (BOOL)SP_NarrowDownCompletion_canHandleEvent:(NSEvent*)anEvent;
+
+@end
+
+@interface SPNarrowDownCompletion (Private)
+
+- (NSRect)rectOfMainScreen;
+- (NSString*)filterString;
+- (void)setupInterface;
+- (void)filter;
+- (void)insertCommonPrefix;
+- (void)completeAndInsertSnippet;
+
@end
@implementation NSTableView (MovingSelectedRow)
+
- (BOOL)SP_NarrowDownCompletion_canHandleEvent:(NSEvent*)anEvent
{
int visibleRows = (int)floorf(NSHeight([self visibleRect]) / ([self rowHeight]+[self intercellSpacing].height)) - 1;
@@ -77,15 +91,6 @@
@end
-@interface SPNarrowDownCompletion (Private)
-- (NSRect)rectOfMainScreen;
-- (NSString*)filterString;
-- (void)setupInterface;
-- (void)filter;
-- (void)insertCommonPrefix;
-- (void)completeAndInsertSnippet;
-@end
-
@implementation SPNarrowDownCompletion
// =============================
// = Setup/tear-down functions =
@@ -502,4 +507,5 @@
}
closeMe = YES;
}
+
@end