-[NSSpellChecker countWordsInString:language:] returns unexpected value
Originator: | eric.s.blair | ||
Number: | rdar://12609104 | Date Originated: | 10/31/2012 |
Status: | Open | Resolved: | |
Product: | Mac OS X | Product Version: | 10.8.2 |
Classification: | Other Bug | Reproducible: | Always |
Summary: - [NSSpellChecker countWordsInString:language:] return -1 when passed the empty string (@""), at least in English Steps to Reproduce: 1. Initialize an NSSpellChecker instance - NSSpellChecker *spellChecker 2. Call [spellChecker countWordsInString:@"" language:@"en"] and check return value. Expected Results: Expect that the call returns 0 Actual Results: Call returns -1. Notes: Alternatively, the empty string behavior should be noted in the documentation for this call.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!