Path: utzoo!utgpu!news-server.csri.toronto.edu!turing.toronto.edu!west Newsgroups: comp.sys.mac.programmer From: west@turing.toronto.edu (Tom West) Subject: TextEdit Questions Message-ID: <1990Jun28.174941.3176@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto Date: 28 Jun 90 21:49:42 GMT Lines: 31 Perhaps a few people knowing about TextEdit could help here. I have a few questions about the lineStarts and nLines fields. (1) When you first initialize a TextEdit field? what are the values of these three fields? I assume nLines is zero and lineStarts is completely uninitialized. (2) If I then enter an X into TE through TEKey, what are the values of the two fields? I assume lineStarts[0] = 0. What would nLines and lineStarts[1] would be? (3) I then enter a \r, so the record contains X\r. Now I get lost. Is nLines 1 or 2? lineStarts[0] = 0. Does lineStarts[1] = 1 or 2? Are all other values of lineStarts uninitialized? (4) If I then enter a Y, so the record contains X\rY, what is the value of nLines? lineStarts[0] = 0. What is lineStarts[1]? Is lineStarts[2] defined? In another unrelated question. I have found out that TextEdit displays actual CRs at the end of each line when it is displaying a record. I wish to use a character set where very character is printable. Is there any way to have TE do the proper line ends, without actually putting a CR on the screen? (I would display Chr(13)'s using another routine that wouldn't use TE when the user wanted that character printed) Thanks for all the help. If you wish to e-mail rather than post, I can be reached at either: tomwest@gpu.utcs.utoronto.ca or west@turing.toronto.edu