🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #39333

Re: New Mac Programmer -- HELP! *Commentary added

#39333
From: Steve Brecher
Date: Tue, 14 Mar 1989 21:53
24 lines
1540 bytes
In article <3949@ece-csc.UUCP>, jnh@ece-csc.UUCP (Joseph Nathan Hall) writes:

> IM I has a TextEdit chapter.  But where does it say that lines in the
> TextEdit record are terminated in carriage returns?

IM I-375: "Normally ... the text automatically wraps around ... .  A new line
also begins where explicitly specified by a Return character in the text."
(See also I-378, last para.)

That is, "normally" there are no terminators at the end of each line; this
would be the case for, e.g., most dialog box static text items -- TextEdit
takes care of formatting the text with respect to lines, and calculates the
contents of the lineStarts array based on the width of the destination
rectangle.  For line-oriented text, e.g., most program source code, there
would be a CR at the end of each line of text.

> Where does it say whether the LineStarts are 0- or 1-based?

IM I-377: "lineStarts: ARRAY[0..16000] OF INTEGER" (see also I-379, last
para.)
-- 

brecher@well.UUCP (Steve Brecher)
Technical Details
Message-ID: <10969@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!oliveb!apple!well!brecher
References: <64@sppy00.UUCP> <3949@ece-csc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!oliveb!apple!well!brecher
From: brecher@well.UUCP (Steve Brecher)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Re: New Mac Programmer -- HELP!  *Commentary added
Keywords: Mac, Macintosh, Help, Programming, @%^#%$
Message-ID: <10969@well.UUCP>
Date: 14 Mar 89 21:53:25 GMT
References: <64@sppy00.UUCP> <3949@ece-csc.UUCP>
Reply-To: brecher@well.UUCP (Steve Brecher)
Distribution: na
Organization: Software Supply, Sunnyvale, CA
Lines: 24