diff options
author | sqlprodev <sqlprodev@northofthree.com> | 2011-04-11 20:29:49 +0000 |
---|---|---|
committer | sqlprodev <sqlprodev@northofthree.com> | 2011-04-11 20:29:49 +0000 |
commit | 0ce916eb0583ec6b062786f91bee0133906671ce (patch) | |
tree | 68a5767ded966f4eadf53ba9ce85bcaf6d31b951 /Source/SPTextViewAdditions.m | |
parent | 2621e79c75a0119a54c669b263caa82183bd19c8 (diff) | |
download | sequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.tar.gz sequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.tar.bz2 sequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.zip |
initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate UI code from functional code
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index b0e87f3d..74c60987 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -389,12 +389,17 @@ */ - (IBAction)insertNULLvalue:(id)sender { +#ifndef SP_REFACTOR id prefs = [NSUserDefaults standardUserDefaults]; - if ([self respondsToSelector:@selector(insertText:)]) { - if([prefs stringForKey:SPNullValue] && [[prefs stringForKey:SPNullValue] length]) +#endif + if([self respondsToSelector:@selector(insertText:)]) + { +#ifndef SP_REFACTOR + if([prefs objectForKey:SPNullValue] && [(NSString*)[prefs objectForKey:SPNullValue] length]) [self insertText:[prefs objectForKey:SPNullValue]]; else +#endif [self insertText:@"NULL"]; } } @@ -494,6 +499,7 @@ [self setEditable:editableStatus]; } +#ifndef SP_REFACTOR - (IBAction)executeBundleItemForInputField:(id)sender { @@ -871,5 +877,6 @@ else if([anEvent deltaZ]<-5.0) [self makeTextSizeSmaller]; } +#endif @end |