aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index f3c41fa8..c547c4a5 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -24,6 +24,7 @@
#import "SPStringAdditions.h"
#import "SPTextViewAdditions.h"
+#import "SPConstants.h"
@implementation NSTextView (SPTextViewAdditions)
@@ -392,8 +393,8 @@
{
id prefs = [NSUserDefaults standardUserDefaults];
if([self respondsToSelector:@selector(insertText:)])
- if([prefs objectForKey:@"NullValue"] && [[prefs objectForKey:@"NullValue"] length])
- [self insertText:[prefs objectForKey:@"NullValue"]];
+ if([prefs objectForKey:SPNullValue] && [[prefs objectForKey:SPNullValue] length])
+ [self insertText:[prefs objectForKey:SPNullValue]];
else
[self insertText:@"NULL"];