Re: NSSpellChecker ignores 'startingAt' param?
Re: NSSpellChecker ignores 'startingAt' param?
- Subject: Re: NSSpellChecker ignores 'startingAt' param?
- From: Douglas Davidson <email@hidden>
- Date: Tue, 29 Nov 2005 13:53:57 -0800
On Nov 29, 2005, at 1:45 PM, Eric Slosser wrote:
I'm trying to spellcheck the string "foobar topic" and find that -
[NSSpellChecker checkSpellingOfString:startingAt:] always returns
the range {0,6}, regardless of what I pass in to 'startingAt'.
Do I need to do something between calls to
checkSpellingOfString:startingAt: to get it to move on?
Take another look at the documentation. There are methods with more
arguments that have a "wrap" flag. For the method you are using, the
wrap flag is always YES. Spellchecking is wrapping around to the
start, since the remainder of your string is correct.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden