From 7d71d9d773ca7ee8b5920e304b7b41b92120943f Mon Sep 17 00:00:00 2001 From: sqlprodev Date: Thu, 14 Feb 2013 20:14:07 +0000 Subject: Changing SP_REFACTOR macro to SP_CODA --- Source/SPNarrowDownCompletion.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/SPNarrowDownCompletion.m') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index c808f220..626168b5 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -6,7 +6,7 @@ // // This class is based on TextMate's TMDIncrementalPopUp implementation // (Dialog plugin) written by Joachim Mårtensson, Allan Odgaard, and Hans-Jörg Bibiko. -// +// // See license: http://svn.textmate.org/trunk/LICENSE // // Permission is hereby granted, free of charge, to any person @@ -132,11 +132,11 @@ staticPrefix = nil; suggestions = nil; autocompletePlaceholderWasInserted = NO; -#ifndef SP_REFACTOR +#ifndef SP_CODA prefs = [NSUserDefaults standardUserDefaults]; #endif -#ifndef SP_REFACTOR +#ifndef SP_CODA tableFont = [NSUnarchiver unarchiveObjectWithData:[[NSUserDefaults standardUserDefaults] dataForKey:SPCustomQueryEditorFont]]; #else tableFont = [NSFont userFixedPitchFontOfSize:10.0]; @@ -159,7 +159,7 @@ - (void)dealloc { [NSObject cancelPreviousPerformRequestsWithTarget:self]; - if (stateTimer != nil) { + if(stateTimer != nil) { [stateTimer invalidate]; [stateTimer release]; stateTimer = nil; @@ -1083,7 +1083,7 @@ if(backtickMode && !triggerMode) [theView performSelector:@selector(moveRight:)]; // If it's a function or procedure append () and if a argument list can be retieved insert them as snippets -#ifndef SP_REFACTOR +#ifndef SP_CODA else if([prefs boolForKey:SPCustomQueryFunctionCompletionInsertsArguments] && ([[[filtered objectAtIndex:[theTableView selectedRow]] objectForKey:@"image"] hasPrefix:@"func"] || [[[filtered objectAtIndex:[theTableView selectedRow]] objectForKey:@"image"] hasPrefix:@"proc"]) && ![aString hasSuffix:@")"]) { NSString *functionArgumentSnippet = [NSString stringWithFormat:@"(%@)", [[SPQueryController sharedQueryController] argumentSnippetForFunction:aString]]; [theView insertAsSnippet:functionArgumentSnippet atRange:[theView selectedRange]]; -- cgit v1.2.3