On Aug 22, 2009, at 12:57 PM, Wade Williams <wadeswo...@mac.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to