Re: Distinguish Pending Text from Committed Text
Re: Distinguish Pending Text from Committed Text
- Subject: Re: Distinguish Pending Text from Committed Text
- From: Gideon King <email@hidden>
- Date: Wed, 20 May 2009 02:30:27 +1000
You can use the markedRange method and then remove it from the text
range you are dealing with to get only the "committed" text.
Gideon
On Tue, May 19, 2009 at 9:48 AM, Dong Feng <email@hidden>
wrote:
When using an non-English input method, such as Japanese or Chinese,
the entered characters are first in a pending status (i.e. with an
underscore). Pressing the space key make those pending text converted
to the actual non-English characters. Pressing the Enter key make the
underscore beneath the letters disappear. Either way, the pending text
become committed.
I want to programmatically distinguish the committed text from the
pending one, in a NSTextField. [NSTextField stringValue] returns the
sum, not only the committed part. Is there any way to do so?
_______________________________________________
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