• 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
Word count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Word count


  • Subject: Word count
  • From: Matt Baker <email@hidden>
  • Date: Wed, 09 Jun 2004 01:05:13 -0500

Anyone know an effiecient way to do a word count on an NSString or (better yet) an NSAttributedString? I'm having trouble getting the spell checker to count the words (always returns 0) and I see I can get an array of the words using NSTextStorage, but that horribly memory-sucking in my opinion. That, and I cannot instantiate a NSTextStorage object (I could get it from an NSTextView, but I'd rather not have to add a text view to just get a word count).

Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Word count
      • From: j o a r <email@hidden>
    • Re: Word count
      • From: j o a r <email@hidden>
  • Prev by Date: Data-bound and remotely confused
  • Next by Date: Re: Retain cycle problem with bindings & NSWindowController
  • Previous by thread: Data-bound and remotely confused
  • Next by thread: Re: Word count
  • Index(es):
    • Date
    • Thread