Re: Detecting Double Byte Input
Re: Detecting Double Byte Input
- Subject: Re: Detecting Double Byte Input
- From: Douglas Davidson <email@hidden>
- Date: Tue, 12 Apr 2005 16:32:26 -0700
On Apr 12, 2005, at 4:26 PM, John Pattenden wrote: Well that's not strictly the case, when double byte characters are being input Cocoa goes into a special mode. You can tell this since the text has a line under it and is not officially "entered" until the user presses the enter key. So there is a difference on the input side for Double Byte characters - All I need to know is if that mode is active or not..
if ([myTextView hasMarkedText]) ...
For more information, see my recent posts to this list on "how input method editors work":
"You should also be aware that in some cases the text view will contain and display text that is only tentative, not yet confirmed by the user. You can find out whether this is the case by calling -hasMarkedText, and you can determine where it is using -markedRange...."
Douglas Davidson
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden