On Oct 15, 2009, at 12:33 PM, Nasser Al Zahrani wrote:

so what classes should i be looking at ?

NSString, mostly. Call -characters and loop over the UniChar[] array it returns.

It's possible there are APIs for language/script detection at a lower level, like CoreText, but this may be the wrong list to find experts on that.

Another possibility that just occurred to me — assuming you're loading the text into an NSTextView already, you can look at the layout information which should tell you the directionality of each run. This is probably somewhere in NSLayoutManager, but I'm not an expert on that class.

—Jens_______________________________________________

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