Re: Handling international text without text views
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