diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-11-19 10:45:00 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-11-19 10:45:00 +0000 |
commit | daa5efe61df282fe602210b5b955a7d21206bf1e (patch) | |
tree | 6fc35af636e038bded6e1a0b31517d8c19af78b8 /Source/SPFieldEditorController.m | |
parent | cb084e21e106d6da123123b565426f2bfd7da595 (diff) | |
download | sequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.tar.gz sequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.tar.bz2 sequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.zip |
• remember the spell checker status in the blob field editor
- status can be toggled by right-click in the text view and go to submenu "Spelling and Grammar" > "Check Spelling while Typing"
Note: up to now "Check Spelling while Typing" wont' be checked in the GUI if it's enabled → TODO (maybe related to the "sheet issue")
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |