• 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: Handling international text without text views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling international text without text views


  • Subject: Re: Handling international text without text views
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 22 Aug 2009 19:52:44 -0700

On Aug 22, 2009, at 12:57 PM, Wade Williams <email@hidden> wrote:

When the application was Carbon, as I recall, I would setup a new TSM document, and that would automatically give me the bottom-line text input bar and I would process the input with my Carbon event handlers. I've been doing some searching on how to accomplish the same thing on Cocoa (enable the bottom-line text entry window and getting events containing the Unicode text), but haven't been able to find anything yet. It appears I might have to do something with NSInputManager, but I haven't really seen how I can accomplish what I want.

Not an expert in this field (though I find myself in the bowels of the text system more and more often), but take a look at the protocols NSText and NSTextView implement. I believe the one you want is NSTextInput.


As for the bottom bar, that might be a legacy Carbon thing. Cocoa input servers provide their own UI.

(But take a look at the stack trace that occurs in -keyDown:. Cocoa creates a TSM document and does all sorts of Carbony things anyway, but you don't get to play with them. Dunno about 64-bit, but you might be able to cross this bridge yourself in 32 bit code.)

Some text system engineers participate on this list. Hopefully one of them, or someone else more knowledgable than I am at the moment, can help you out more.

Good luck!

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Handling international text without text views
      • From: Aki Inoue <email@hidden>
References: 
 >Handling international text without text views (From: Wade Williams <email@hidden>)

  • Prev by Date: Re: checkbox question
  • Next by Date: Re: Core Animation + Garbage Collection
  • Previous by thread: Handling international text without text views
  • Next by thread: Re: Handling international text without text views
  • Index(es):
    • Date
    • Thread