aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Resources/PreferenceDefaults.plist2
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
-rw-r--r--Source/SPFieldEditorController.m7
-rw-r--r--Source/TableDocument.m1
5 files changed, 11 insertions, 1 deletions
diff --git a/Resources/PreferenceDefaults.plist b/Resources/PreferenceDefaults.plist
index ac28192c..71e9473d 100644
--- a/Resources/PreferenceDefaults.plist
+++ b/Resources/PreferenceDefaults.plist
@@ -133,5 +133,7 @@
<string>\</string>
<key>CSVImportFirstLineIsHeader</key>
<true/>
+ <key>BlobTextEditorSpellCheckingEnabled</key>
+ <false/>
</dict>
</plist>
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 30645a7d..221d057c 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -182,3 +182,4 @@ extern NSString *SPQueryHistory;
extern NSString *SPQueryHistoryReplacesContent;
extern NSString *SPQuickLookTypes;
extern NSString *SPTableChangedNotification;
+extern NSString *SPBlobTextEditorSpellCheckingEnabled;
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 4c01f1d4..06e32b6d 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -126,3 +126,4 @@ NSString *SPQueryHistory = @"queryHistory";
NSString *SPQueryHistoryReplacesContent = @"QueryHistoryReplacesContent";
NSString *SPQuickLookTypes = @"QuickLookTypes";
NSString *SPTableChangedNotification = @"SPTableSelectionChanged";
+NSString *SPBlobTextEditorSpellCheckingEnabled = @"BlobTextEditorSpellCheckingEnabled";
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 43bab67c..4df767f4 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -138,7 +138,9 @@
else {
[editTextView setFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:@"FieldEditorSheetFont"]]];
}
-
+
+ [editTextView setContinuousSpellCheckingEnabled:[prefs boolForKey:SPBlobTextEditorSpellCheckingEnabled]];
+
[hexTextView setFont:[NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]]];
[editSheetFieldName setStringValue:[NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"Field", @"Field"), fieldName]];
@@ -319,6 +321,9 @@
// For safety reasons inform QuickLook to quit
quickLookCloseMarker = 1;
+ // Remember spell cheecker status
+ [prefs setBool:[editTextView isContinuousSpellCheckingEnabled] forKey:SPBlobTextEditorSpellCheckingEnabled];
+
return ( editSheetReturnCode && isEditable ) ? [sheetEditData retain] : nil;
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 78df5e16..4e0f68fc 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -70,6 +70,7 @@
- (id)init
{
+
if ((self = [super init])) {
_mainNibLoaded = NO;