Foreign language scripts with NSTextInput.
Foreign language scripts with NSTextInput.
- Subject: Foreign language scripts with NSTextInput.
- From: Charles Jolley <email@hidden>
- Date: Thu, 1 Aug 2002 16:51:43 -0500
Hi all:
I am writing an object that implements the text input protocol. (From
scratch, no NSTextView, though I am using NSLayoutManager to do
display, layout, etc.) Everything seems to be working fine except I am
having trouble working with the attributes returned by input managers
for asian text, such as the Apple Japanese input manager.
Basically, I am trying to figure out what to do with the attributes
returned from these managers. The docs say the attributes returned are
those defined for use in an attributed string (NSFontAttributeName,
NSForegroundColorAttributeName, etc.) If I handle just these, however,
the input manager does not behave correctly. A little empirical work
revealed that these input managers return additional attributes such as:
NSUnderlineColor
NSMarkedClauseSegment
NSLanguage
NSGlyphInfo
These all show up in 10.1 though none of them are public parts of the
AppKit. This would be fine; I could just set these as temporary or
"real" attributes in the text/layout manager. The layout manager,
however, does not seem to respond to them. Can anyone tell me how I am
supposed to work with these so my input client can support foreign
languages? Does anyone have a list of ALL the attributes I need to
handle?
Thanks,
-Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.