Skip navigation.
 
mlRe: Detecting Double Byte Input
FROM : Douglas Davidson
DATE : Wed Apr 13 01:32:26 2005

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

Related mailsAuthorDate
mlDetecting Double Byte Input John Pattenden Apr 12, 22:10
mlDetecting Double Byte Input John Pattenden Apr 13, 00:41
mlRe: Detecting Double Byte Input glenn andreas Apr 13, 00:57
mlRe: Detecting Double Byte Input John Pattenden Apr 13, 01:26
mlRe: Detecting Double Byte Input Douglas Davidson Apr 13, 01:32
mlRe: Detecting Double Byte Input John Stiles Apr 13, 01:36
mlRe: Detecting Double Byte Input John Pattenden Apr 13, 02:00
mlRe: Detecting Double Byte Input John Pattenden Apr 13, 02:38
mlRe: Detecting Double Byte Input Ben Kennedy Apr 13, 02:42
mlRe: Detecting Double Byte Input John Stiles Apr 13, 02:45
mlRe: Detecting Double Byte Input Aki Inoue Apr 13, 07:23
mlRe: Detecting Double Byte Input Aki Inoue Apr 13, 07:27