• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSpellChecker ignores 'startingAt' param?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSpellChecker ignores 'startingAt' param? (From: Eric Slosser <email@hidden>)

  • Prev by Date: Re: Processing mouse and key events from a background app
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: NSSpellChecker ignores 'startingAt' param?
  • Next by thread: Unified instead of Brushed Metal NSDrawer
  • Index(es):
    • Date
    • Thread