Revision: 13452
http://sourceforge.net/p/skim-app/code/13452
Author: hofman
Date: 2023-06-07 18:08:38 +0000 (Wed, 07 Jun 2023)
Log Message:
-----------
Don't make automatica spelling correction sticky, as this should be controlled
by the system preferenes
Modified Paths:
--------------
trunk/InitialUserDefaults.plist
trunk/SKNoteTextView.m
trunk/SKStringConstants.h
trunk/SKStringConstants.m
trunk/SKTextNoteEditor.m
Modified: trunk/InitialUserDefaults.plist
===================================================================
--- trunk/InitialUserDefaults.plist 2023-06-07 17:34:57 UTC (rev 13451)
+++ trunk/InitialUserDefaults.plist 2023-06-07 18:08:38 UTC (rev 13452)
@@ -238,8 +238,6 @@
<true/>
<key>SKGrammarCheckingEnabled</key>
<false/>
- <key>SKSpellingCorrectionEnabled</key>
- <true/>
</dict>
<key>ResettableKeys</key>
<dict>
Modified: trunk/SKNoteTextView.m
===================================================================
--- trunk/SKNoteTextView.m 2023-06-07 17:34:57 UTC (rev 13451)
+++ trunk/SKNoteTextView.m 2023-06-07 18:08:38 UTC (rev 13452)
@@ -54,7 +54,6 @@
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
[self setContinuousSpellCheckingEnabled:[sud
boolForKey:SKSpellCheckingEnabledKey]];
[self setGrammarCheckingEnabled:[sud
boolForKey:SKGrammarCheckingEnabledKey]];
- [self setAutomaticSpellingCorrectionEnabled:[sud
boolForKey:SKSpellingCorrectionEnabledKey]];
}
return self;
}
@@ -65,7 +64,6 @@
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
[self setContinuousSpellCheckingEnabled:[sud
boolForKey:SKSpellCheckingEnabledKey]];
[self setGrammarCheckingEnabled:[sud
boolForKey:SKGrammarCheckingEnabledKey]];
- [self setAutomaticSpellingCorrectionEnabled:[sud
boolForKey:SKSpellingCorrectionEnabledKey]];
}
return self;
}
@@ -120,9 +118,4 @@
[[NSUserDefaults standardUserDefaults] setBool:[self
isGrammarCheckingEnabled] forKey:SKGrammarCheckingEnabledKey];
}
-- (void)toggleAutomaticSpellingCorrection:(id)sender {
- [super toggleAutomaticSpellingCorrection:sender];
- [[NSUserDefaults standardUserDefaults] setBool:[self
isAutomaticSpellingCorrectionEnabled] forKey:SKSpellingCorrectionEnabledKey];
-}
-
@end
Modified: trunk/SKStringConstants.h
===================================================================
--- trunk/SKStringConstants.h 2023-06-07 17:34:57 UTC (rev 13451)
+++ trunk/SKStringConstants.h 2023-06-07 18:08:38 UTC (rev 13452)
@@ -139,7 +139,6 @@
extern NSString *SKCaseInsensitiveFindKey;
extern NSString *SKSpellCheckingEnabledKey;
extern NSString *SKGrammarCheckingEnabledKey;
-extern NSString *SKSpellingCorrectionEnabledKey;
extern NSString *SKDownloadsDirectoryKey;
extern NSString *SKDisableSearchAfterSpotlighKey;
extern NSString *SKDisplayNoteBoundsKey;
Modified: trunk/SKStringConstants.m
===================================================================
--- trunk/SKStringConstants.m 2023-06-07 17:34:57 UTC (rev 13451)
+++ trunk/SKStringConstants.m 2023-06-07 18:08:38 UTC (rev 13452)
@@ -140,7 +140,6 @@
NSString *SKCaseInsensitiveFindKey = @"SKCaseInsensitiveFind";
NSString *SKSpellCheckingEnabledKey = @"SKSpellCheckingEnabled";
NSString *SKGrammarCheckingEnabledKey = @"SKGrammarCheckingEnabled";
-NSString *SKSpellingCorrectionEnabledKey = @"SKSpellingCorrectionEnabled";
NSString *SKDownloadsDirectoryKey = @"SKDownloadsDirectory";
NSString *SKDisableSearchAfterSpotlighKey = @"SKDisableSearchAfterSpotligh";
NSString *SKDisplayNoteBoundsKey = @"SKDisplayNoteBounds";
Modified: trunk/SKTextNoteEditor.m
===================================================================
--- trunk/SKTextNoteEditor.m 2023-06-07 17:34:57 UTC (rev 13451)
+++ trunk/SKTextNoteEditor.m 2023-06-07 18:08:38 UTC (rev 13452)
@@ -328,7 +328,6 @@
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
[self setContinuousSpellCheckingEnabled:[sud
boolForKey:SKSpellCheckingEnabledKey]];
[self setGrammarCheckingEnabled:[sud
boolForKey:SKGrammarCheckingEnabledKey]];
- [self setAutomaticSpellingCorrectionEnabled:[sud
boolForKey:SKSpellingCorrectionEnabledKey]];
}
return self;
}
@@ -358,9 +357,4 @@
[[NSUserDefaults standardUserDefaults] setBool:[self
isGrammarCheckingEnabled] forKey:SKGrammarCheckingEnabledKey];
}
-- (void)toggleAutomaticSpellingCorrection:(id)sender {
- [super toggleAutomaticSpellingCorrection:sender];
- [[NSUserDefaults standardUserDefaults] setBool:[self
isAutomaticSpellingCorrectionEnabled] forKey:SKSpellingCorrectionEnabledKey];
-}
-
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit