/*********** SpellCheckerConversion: NXSpellChecker class ***********/
replace "NXSpellCheckMode" with same
error "SpellCheckerConversion: NXSpellCheckMode is obsolete"
replacemethod "<sel>" with same
error "SpellCheckerConversion: -[NXSpellChecker <sel>] is obsolete; use -[NSSpellChecker checkSpellingOfString:startingAt:] instead."
where "<sel>" isOneOf {
"checkSpelling:of:",
}
replacemethod "<sel>" with same
error "SpellCheckerConversion: -[NXSpellChecker <sel>] is obsolete; use -[NSSpellChecker checkSpellingOfString:startingAt:language:wrap:spellDocument:wordCount:] instead."
where "<sel>" isOneOf {
"checkSpelling:of:wordCount:"
}
replacemethod "closeSpellDocument:" with "closeSpellDocumentWithTag:"
replacemethod "ignoredWordsForSpellDocument:" with "ignoredWordsInSpellDocumentWithTag:" {
replace "<rettype>" with "(NSArray *)"
}
error "SpellCheckerConversion: 'ignoredWordsInSpellDocumentWithTag:' (used to be 'ignoredWordsForSpellDocument') now returns NSArray of NSStrings (used to return char **)"
replacemethod "setIgnoreWords:<1> forSpellDocument:" with "setIgnoredWords:<1> inSpellDocumentWithTag:" {
replace "<1_type>" with "(NSArray *)"
}
error "SpellCheckerConversion: 'setIgnoredWords:inSpellDocumentWithTag:' (used to be 'setIgnoreWords:forSpellDocument:') now takes NSArray of NSStrings as first argument (used to take char **)"
error "SpellCheckerConversion: 'addGuess' is obsolete. 'spellServer:suggestGuessesForWord:inLanguage:' returns an NSArray of guesses directly"
replacemethod "spellServer:findMisspelledWord:length:inLanguage:inTextStream:startingAt:wordCount:countOnly:" with same
error "SpellCheckerConversion: change to 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:'"
replacemethod "spellServer:suggestGuessesForWord:inLanguage:" with same {
replace "<rettype>" with "(NSArray *)"
}
error "SpellCheckerConversion: 'spellServer:suggestGuessesForWord:inLanguage:' now returns an NSArray of NSString containing the guesses (used to return void)"
/*********** SpellCheckerConversion: name changes ***********/