Drop runtime support for OS X 10.5 NSSpellChecker

This commit is contained in:
Stephan Witt 2014-12-23 18:19:27 +01:00
parent bb87e0422a
commit 54b0fa330e

View File

@ -162,16 +162,11 @@ size_t AppleSpeller_makeSuggestion(AppleSpeller speller, const char * word, cons
// Mac OS X 10.6 only // Mac OS X 10.6 only
NSInteger slen = [word_ length]; NSInteger slen = [word_ length];
NSRange range = { 0, slen }; NSRange range = { 0, slen };
if ([NSSpellChecker instancesRespondToSelector:@selector(guessesForWordRange:)]) { result = [speller->checker guessesForWordRange:range
result = [speller->checker guessesForWordRange:range inString:word_
inString:word_ language:lang_
language:lang_ inSpellDocumentWithTag:speller->doctag];
inSpellDocumentWithTag:speller->doctag];
} else {
[speller->checker setLanguage:lang_];
result = [speller->checker guessesForWord:word_];
}
#else #else
[speller->checker setLanguage:lang_]; [speller->checker setLanguage:lang_];
result = [speller->checker guessesForWord:word_]; result = [speller->checker guessesForWord:word_];