diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-07 02:32:05 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-07 02:32:05 +0000 |
commit | 55bf19f025ab67562b151a40e2440c5c76b00ee5 (patch) | |
tree | 720b0775b3f245bec246eca461b43cf3ccdc254b /Source/SPNarrowDownCompletion.m | |
parent | 021ed107a07064cb5e0f1988b778fa0cfe4ffa37 (diff) | |
download | sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.gz sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.tar.bz2 sequelpro-55bf19f025ab67562b151a40e2440c5c76b00ee5.zip |
Tidy up.
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 24 |
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 |