diff options
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 |