From 3b70bf3ed475602fac435b86ab564423ae1dfdb0 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 24 Mar 2010 21:51:27 +0000 Subject: General tidy up, with a focus on consolidating more constants in SPConstants.h/m. --- Source/SPNarrowDownCompletion.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/SPNarrowDownCompletion.m') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index de9d39aa..40cbd2d9 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -27,6 +27,7 @@ // More info at #import +#import #import "SPNarrowDownCompletion.h" #import "SPArrayAdditions.h" @@ -36,7 +37,7 @@ #import "SPQueryController.h" #import "RegexKitLite.h" #import "CMTextView.h" -#include +#import "SPConstants.h" @interface NSTableView (MovingSelectedRow) @@ -556,7 +557,7 @@ NSPoint old = NSMakePoint([self frame].origin.x, [self frame].origin.y + [self frame].size.height); - NSInteger displayedRows = [newFiltered count] < SP_NARROWDOWNLIST_MAX_ROWS ? [newFiltered count] : SP_NARROWDOWNLIST_MAX_ROWS; + NSInteger displayedRows = [newFiltered count] < SPNarrowDownCompletionMaxRows ? [newFiltered count] : SPNarrowDownCompletionMaxRows; CGFloat newHeight = ([theTableView rowHeight] + [theTableView intercellSpacing].height) * ((displayedRows) ? displayedRows : 1); if(caretPos.y >= 0 && (isAbove || caretPos.y < newHeight)) -- cgit v1.2.3