Skip navigation.
 
mlRe: Detecting Double Byte Input
FROM : John Pattenden
DATE : Wed Apr 13 01:26:41 2005

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..


John Pattenden
ScreenTime Media

Get Advice - Give Advice
http://forums.screentime.com



On Apr 12, 2005, at 6:57 PM, glenn andreas wrote:

>
> On Apr 12, 2005, at 5:41 PM, John Pattenden wrote:
>

>> Is there a way to determine if double byte text input is active?
>>
>> I need to make a special case for my code that does different things
>> if regular text is being entered vs Japanese or some other Double
>> Byte text.
>> thanks for any help
>>

>
> Given that Cocoa uses Unicode for it's user text input, there is no
> such thing as "regular text" vs "double byte text" - you get an
> NSString composed of unichars (disregarding, for the moment, surrogate
> pairs), so your question doesn't really make sense from a Cocoa point
> of view...
>
> What exactly are you trying to accomplish?
>
>
> Glenn Andreas                      <email_removed> 
>  <http://www.gandreas.com/> oh my!
> quadrium | build, mutate, evolve | images, textures, backgrounds, art
>

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