diff options
author | stuconnolly <stuart02@gmail.com> | 2009-10-17 00:35:09 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-10-17 00:35:09 +0000 |
commit | 6a4e2994d17220eb43015162522deec1efdd429b (patch) | |
tree | f1d2abc0691948bcbd901929c82347137ee0de85 /Source/SPTextViewAdditions.m | |
parent | c3eb7de88f2baf7774749f4311a84b75ef833eb7 (diff) | |
download | sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.gz sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.bz2 sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.zip |
Replace the use of hard coded preference keys with constants to prevent issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 5 |
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"]; |