diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConstants.h | 1 | ||||
-rw-r--r-- | Source/SPConstants.m | 1 | ||||
-rw-r--r-- | Source/SPFieldEditorController.m | 7 | ||||
-rw-r--r-- | Source/TableDocument.m | 1 |
4 files changed, 9 insertions, 1 deletions
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; |