• 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: How is "Apple + Ctrl + D" implemented?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How is "Apple + Ctrl + D" implemented?


  • Subject: Re: How is "Apple + Ctrl + D" implemented?
  • From: Deborah Goldsmith <email@hidden>
  • Date: Wed, 07 May 2008 13:28:00 -0700

On Apr 28, 2008, at 5:35 AM, John Joyce wrote:
The range of the word is up to you to find and depends on the language. If it is any common language from Europe, your job is a lot easier. You mainly need to work with whitespace and punctuation. If you're working with Japanese, you'll need to learn of lot of complex tricks to identify the range of words...

There should be no need to implement your own word breaking. Please use one of the system APIs that will do this for you, all of which have been mentioned in this thread. For the usage of words described here, CFStringTokenizer is probably best as it has the sophistication necessary to break text in Chinese and Japanese into words.


Deborah Goldsmith
Apple Inc.
email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Can't understand what's causing NSRangeException
  • Next by Date: Re: NSWindow Centering Problem
  • Previous by thread: Re: EventMonitorTarget in Cocoa
  • Next by thread: 8 Digit random number
  • Index(es):
    • Date
    • Thread