Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!ncsuvx!ecemwl!jnh From: jnh@ecemwl.ncsu.edu (Joseph N. Hall) Newsgroups: comp.sys.mac.programmer Subject: Re: More than 32k into a TextEdit window? Message-ID: <3956@ncsuvx.ncsu.edu> Date: 14 Sep 89 19:46:14 GMT References: <10417@phoenix.Princeton.EDU> <15574@dartvax.Dartmouth.EDU> Sender: news@ncsuvx.ncsu.edu Reply-To: jnh@ecemwl.UUCP (Joseph N. Hall) Organization: North Carolina State University Lines: 36 In article <15574@dartvax.Dartmouth.EDU> earleh@eleazar.dartmouth.edu (Earle R. Horton) writes: >In article <10417@phoenix.Princeton.EDU> bskendig@phoenix.Princeton.EDU > (Brian Kendig) writes: >>How do I get more than 32k into a TextEdit window? If I can't squeeze it >>all into my TextEdit record, how can I simulate having it all there - >>especially with the scroll bars? Sample code would be greatly appreciated. > >This is a pretty heavy-duty chunk of sample code you want here, to be >sure. It has been done, but most of the good implementations I have >seen are in products for which one cannot acquire the source code. > ERH suggests using a linked list of handles for line-oriented text records. This is the easier approach if what you want is a WYSIWYG editor with fancy formatting capabilities, but on the other hand if you want just a text editor, the "big blob" of text approach is somewhat easier to implement. If I'm not mistaken, source code to two of these editors, MacJove and MicroEmacs (both of which are sort of emacs clones), is available. I don't remember from where, exactly. The display, editing, scrolling, etc., code from one of these may prove edifying. The other possibility is PEdit. Symantec has discontinued Capps', but they may have copies left in stock, which they will gladly sell you. I have nearly finished a PE-based text editing class which has some pretty nice features, but I'm not sure how or if I will be able to distribute it. If only they would "un-discontinue" Capps' ... alas! I will certainly distribute the source to my PE class if anyone wants it (don't expect it for a few weeks; I want to bash on it), and it will be PD. I doubt I'll be able to distribute it with the PE library in any form, though, so it won't be of much use to those of you who don't have Capps'. v v sssss|| joseph hall || 4116 Brewster Drive v v s s || jnh@ecemwl.ncsu.edu (Internet) || Raleigh, NC 27606 v sss || SP Software/CAD Tool Developer, Mac Hacker and Keyboardist -----------|| Disclaimer: NCSU may not share my views, but is welcome to.