• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining if a special input method is active - was Detecting double byte input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining if a special input method is active - was Detecting double byte input


  • Subject: Re: Determining if a special input method is active - was Detecting double byte input
  • From: John Pattenden <email@hidden>
  • Date: Wed, 13 Apr 2005 17:28:23 -0400

Lets just say I am hamstrung by some limitations related to QuickDraw and Carbon event handling.

I can work around them if I know when a special input method is active - I do not want nor need to write my own method.

i guess I could look for the command-space hot key, but that still would not tell me what the current input method is.

So to be specific the problem is... I need to know when a special input method is active.. is there something like a getCurrentInputMethod API?

john

On Apr 13, 2005, at 3:00 PM, John Stiles wrote:

Please be more specific about what the problem is. It really sounds like you are trying to tiptoe around actually supporting text encodings. That'll be easy to get 90% correct, but good luck with the last 10%. :) You might be interested to know these trivia tidbits:
- CFStrings and NSStrings are interchangeable
- Carbon can render a CFString without glitches, even if there are Japanese or other Unicode characters in it
Trying to get this to work based on which input method is active is almost certainly a broken approach.


On Apr 13, 2005, at 11:36 AM, John Pattenden wrote:

I think I've narrowed down the problem I want to solve after reading some pretty informative posts on the list.

Here is a piece of a post from Douglas Davidosn

"Now, in most cases the key events will come back to the view either as insertText: (for ordinary key presses with an ordinary keyboard) or as doCommandBySelector: (for special keys like delete, return, etc.), as the NSResponder.h comments mention.  However, if a special input method like Kotoeri is active, then something else will happen.  To handle those cases, NSTextView conforms to the NSTextInput protocol."

So what I'd like to know ahead of time is if a "special input method" is active.

This is highly specific need related to sending characters to Carbon/QuickDraw from Cocoa.

I want to let characters pass through if no "special input method" is active and do something else otherwise..

Command Space toggle between modes and presumably sets some sort of system global, is that what I need to get at?

John Pattenden
ScreenTime Media

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


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

  • Follow-Ups:
    • Re: Determining if a special input method is active - was Detecting double byte input
      • From: John Stiles <email@hidden>
References: 
 >Determining if a special input method is active - was Detecting double byte input (From: John Pattenden <email@hidden>)
 >Re: Determining if a special input method is active - was Detecting double byte input (From: John Stiles <email@hidden>)

  • Prev by Date: Re: OT : Is the Jaguar user base large enough to still support it?
  • Next by Date: Re: When are bound variables initialized?
  • Previous by thread: Re: Determining if a special input method is active - was Detecting double byte input
  • Next by thread: Re: Determining if a special input method is active - was Detecting double byte input
  • Index(es):
    • Date
    • Thread