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

@ -163,15 +163,10 @@ size_t AppleSpeller_makeSuggestion(AppleSpeller speller, const char * word, cons
NSInteger slen = [word_ length];
NSRange range = { 0, slen };
if ([NSSpellChecker instancesRespondToSelector:@selector(guessesForWordRange:)]) {
result = [speller->checker guessesForWordRange:range
inString:word_
language:lang_
inSpellDocumentWithTag:speller->doctag];
} else {
[speller->checker setLanguage:lang_];
result = [speller->checker guessesForWord:word_];
}
result = [speller->checker guessesForWordRange:range
inString:word_
language:lang_
inSpellDocumentWithTag:speller->doctag];
#else
[speller->checker setLanguage:lang_];
result = [speller->checker guessesForWord:word_];