• 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
Correct value for spell checking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct value for spell checking


  • Subject: Correct value for spell checking
  • From: Nir Soffer <email@hidden>
  • Date: Sun, 16 Jul 2006 17:54:20 +0300

In - (NSRange)checkSpellingOfString:(NSString *)stringToCheck startingAt:(int)startingOffset language:(NSString *)language wrap: (BOOL)wrapFlag inSpellDocumentWithTag:(int)tag wordCount:(int *) wordCount

When a spelling is not found, should this method return {NSNotFound, 0}, or it is correct to return {0,0}?

Other methods like rangeOfString return {NSNotFound, 0}, but NSSpellChecker docs does not mention this. Maybe its a documentation bug?


Best Regards,

Nir Soffer

_______________________________________________
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


  • Prev by Date: Re: Control arrays?
  • Next by Date: Re: NSEnumerator -> NSPopupButton (was: Re: NSPipe / NSTask ls -> Array)
  • Previous by thread: Re: Control arrays?
  • Next by thread: NSDatePicker leaking in graphical mode?
  • Index(es):
    • Date
    • Thread