mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Drop runtime support for OS X 10.5 NSSpellChecker
This commit is contained in:
parent
bb87e0422a
commit
54b0fa330e
@ -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_];
|
||||
|
Loading…
Reference in New Issue
Block a user