On 22 Jun 2009, at 11:41, Chris Suter <csu...@sutes.co.uk> wrote:

On Mon, Jun 22, 2009 at 6:10 PM, Steve Cronin<steve_cro...@mac.com> wrote:

But what is the right solution??

For finding word boundaries, I think you're supposed to use
NSAttributedString's nextWordFromIndex:forward: and
doubleClickAtIndex: methods.
There also is CFStringTokenizer which can do plain (non-attributed) NSStrings.

Bear in mind that some languages don't really have the concept of words.
Could you please elaborate? Maybe some examples?

(There are many languages which do not seperate words by spaces - but languages without words: this is something new for me.)

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to