Carbon


TextEdit

Carbon supports nearly all TextEdit functions, but TextEdit functionality has been replaced by Multilingual Text Engine(MLTE). Although there is not necessarily a one-to-one correspondence between APIs in these two technologies, you are encouraged to use MLTE in place of TextEdit.

The Carbon version of TextEdit introduces the following changes:

The low memory accessors for TextEdit structures will be replaced as follows:

TEGet/SetScrapLength replaces LMGet/SetTEScrpLength

TEGet/SetScrapHandle replaces LMGet/SetTEScrpHandle

TEGet/SetDoTextHook replaces LMGet/SetTEDoText

TEGet/SetRecalcHook replaces LMGet/SetTERecal

A new accessor has been added for the FindWord hook: TEGet/SetFindWordHook.

TESetWordBreak will be not available in Carbon, and the wordBreak should not be overriden as a way to customize wordBreak behavior. Instead, override the FindWord hook via the TEGet/SetFindWordHook accessors. Previously, the wordBreak hook was only used on Roman-only systems, a distinction that will not exist in Carbon. TERec's wordBreak field will therefore be completely ignored.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)