TextEdit Reference
(Not Recommended)
PDF
Overview
Functions by Task
Activating and Deactivating an Edit Structure
Using Additional TextEdit Features
Checking, Setting, and Replacing Styles
Customizing TextEdit
Displaying and Scrolling Text
Initializing TextEdit, Creating an Edit Structure, and Disposing of an Edit Structure
Managing the TextEdit Private Scrap
Modifying the Text of an Edit Structure
Setting and Getting an Edit Structure’s Text and Character Attribute Information
Setting the Caret and Selection Range
Using Byte Offsets and Corresponding Points
Handling TSM Dialogs
Working With UPPs for TextEdit Callback Functions
Callbacks
CaretHookProcPtr
DrawHookProcPtr
EOLHookProcPtr
HighHookProcPtr
HitTestHookProcPtr
NWidthHookProcPtr
TEClickLoopProcPtr
TEDoTextProcPtr
TEFindWordProcPtr
TERecalcProcPtr
TextWidthHookProcPtr
TSMTEPostUpdateProcPtr
TSMTEPreUpdateProcPtr
WidthHookProcPtr
Data Types
CaretHookUPP
Chars
CharsPtr
CharsHandle
DrawHookUPP
EOLHookUPP
HighHookUPP
HitTestHookUPP
LHHandle
LHElement
LHTable
NullStHandle
NullStRec
NWidthHookUPP
ScrpSTElement
ScrpSTTable
STElement
STHandle
StScrpHandle
StScrpRec
StyleRun
TEClickLoopUPP
TEDoTextUPP
TEFindWordUPP
TEHandle
TEIntHook
TEPtr
TERec
TERecalcUPP
TEStyleRec
TEStyleTable
TextStyle
TextWidthHookUPP
TSMDialogPeek
TSMDialogPtr
TSMDialogRecord
TSMTEPostUpdateUPP
TSMTEPreUpdateUPP
TSMTERec
TSMTERecHandle
WidthHookUPP
Constants
Auto Idling Flag
Auto Scroll Constant
Do Text Selectors
Find Word Identification Constants
Hook Constants
Inline Input Flag
Signature and Interface Constants
Style Mode Constants
Text Alignment Constants
Text Custom Hook Constants
Text Feature Action Constants
Text Feature Constants
Text Styling Constants
Result Codes
Appendix A: Deprecated TextEdit Reference (Not Recommended) Functions
Deprecated in Mac OS X v10.4
DisposeCaretHookUPP
DisposeDrawHookUPP
DisposeEOLHookUPP
DisposeHighHookUPP
DisposeHitTestHookUPP
DisposeNWidthHookUPP
DisposeTEClickLoopUPP
DisposeTEDoTextUPP
DisposeTEFindWordUPP
DisposeTERecalcUPP
DisposeTextWidthHookUPP
DisposeTSMTEPostUpdateUPP
DisposeTSMTEPreUpdateUPP
DisposeWidthHookUPP
GetTSMTEDialogDocumentID
GetTSMTEDialogTSMTERecHandle
InvokeCaretHookUPP
InvokeDrawHookUPP
InvokeEOLHookUPP
InvokeHighHookUPP
InvokeHitTestHookUPP
InvokeNWidthHookUPP
InvokeTEClickLoopUPP
InvokeTEDoTextUPP
InvokeTEFindWordUPP
InvokeTERecalcUPP
InvokeTextWidthHookUPP
InvokeTSMTEPostUpdateUPP
InvokeTSMTEPreUpdateUPP
InvokeWidthHookUPP
IsTSMTEDialog
NewCaretHookUPP
NewDrawHookUPP
NewEOLHookUPP
NewHighHookUPP
NewHitTestHookUPP
NewNWidthHookUPP
NewTEClickLoopUPP
NewTEDoTextUPP
NewTEFindWordUPP
NewTERecalcUPP
NewTextWidthHookUPP
NewTSMTEPostUpdateUPP
NewTSMTEPreUpdateUPP
NewWidthHookUPP
SetTSMTEDialogDocumentID
SetTSMTEDialogTSMTERecHandle
TEActivate
TEAutoView
TECalText
TEClick
TEContinuousStyle
TECopy
TECustomHook
TECut
TEDeactivate
TEDelete
TEDispose
TEFeatureFlag
TEFromScrap
TEGetDoTextHook
TEGetFindWordHook
TEGetHeight
TEGetHiliteRgn
TEGetOffset
TEGetPoint
TEGetRecalcHook
TEGetScrapHandle
TEGetScrapLength
TEGetStyle
TEGetStyleHandle
TEGetStyleScrapHandle
TEGetText
TEIdle
TEInsert
TEKey
TENew
TENumStyles
TEPaste
TEPinScroll
TEReplaceStyle
TEScrapHandle
TEScroll
TESelView
TESetAlignment
TESetClickLoop
TESetDoTextHook
TESetFindWordHook
TESetRecalcHook
TESetScrapHandle
TESetScrapLength
TESetSelect
TESetStyle
TESetStyleHandle
TESetText
TEStyleInsert
TEStyleNew
TEStylePaste
TETextBox
TEToScrap
TEUpdate
TEUseStyleScrap
Revision History
Index