Skip to main content
Home Documents Macintosh MacApp 2.0b5 UTEView Release Notes
MacApp 2.0b5 UTEView Release Notes

MacApp 2.0b5 UTEView Release Notes

Macintosh · 1988 · PDF
FilenameMacApp_2.0b5_UTEView_Release_Notes.pdf
Size0.96 MB
Year1988
Subsection developer / MacApp / MacApp_2.0b5
Downloads1
Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute metadata corrections, and join the community chat.
Reader
MacApp 2.0b5 UTEView Release Notes
/
Loading…
OCR / Text contents
MacApp 2.0b5 UTEView Release Notes Russ Wetmore Overview This document documents changes and additions to the UTEView unit of MacApp. There are several reasons why these changes were desirable: • • • • To support the new MacApp 2.0 display architecture To add support for the new, "styled" TextEdit To simplify the unit and add consistency To improve its (already substantial) memory management facilities There are a couple of limitations which prevent TTEView from fully conforming to the new MacApp 2.0 display architecture. They are: • The text in a TextEdit record (TERec. hText) is limited to 32K characters • The height of the entire record must be less than 32K pixels tall. For these reasons, TIEView objects cannot take advantage of MacApp's 32-bit view coordinates The new TextEdit stresses memory management with more relocatable data structures, and many more temporary objects. TIEView tries its best to assure that any TIECommand is undoable. With version 1.0/1.1, however even with the precautions taken it is still possible to run into out-of-memory conditions that prevent undoing commands. The addition of extra data structures/objects just intensifies the need for new algorithms to assure that any command will be undoable. Note: In the descriptions that follow, new or changed methods, fields, and parameters are underlined. Global Constants cStyleChange kUnlimited kWithStyle kWithoutStyle kSaveCurrentChars (= 130) (= MAXINT) (= TRUE) (= FALSE) (= TRUE) "Menu" command for style change. The maximum number of characters in the fText of a TTEView object. Parameter to TTEView . ITEView. Parameter to TTEView. ITEView . Parameter to TTECommand. ITECommand. The TTEView Class The following changes have been made for TTEView: • fFont. fSize and fStyle have been replaced by a single fTextStyle record of type TextStyle. TextStyle is a data structure used by the new TextEdit. and is defined as TextStyle = RECORD tsFont tsFace tsSize tsColor END; INTEGER; Style; INTEGER; RGBColor; • TTEView. ITEView has been simplified. Some rarely used parameters have been removed (such as itsKeyCmdNumber and itsMaxChars) and others have been bunched together. A new parameter itsStyleType signifies whether the TERecord is "styled" or not. • TTEView. Inspect and TTEView. ShowDebugInfo have been replaced by the new Inspector-supported TTEView. Fields. Fields fHTE fText fSavedTEHandle fInset fKeyCmdNumber fMaxChars fTypingCommand fTextStyle fJust ificat ion fAcceptsChanges fStyleType fAutoWrap fFreeText fSpecsChang-ed fLastHeig-ht fScrol1er fLastPag-eBreak fLastLine Wed. Aug 3.1988 Handle to the actual TextEdit object. The text in the TEHandle. Saved handle from TENew. A rectangle defining the amount of pixels to inset the TERecord's viewRect from view's extent Thus, fInset defines margins around the edges of the view. Views whose text autowraps should have a bottom margin of zero. Will be used as the string number for "Undo Typing." Maximum number of cha…

Showing first 3,000 characters of 22,941 total. Open the full document →

mp.ls