Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!rutgers!gatech!purdue!haven!decuac!shlump.nac.dec.com!mountn.dec.com!minow From: minow@mountn.dec.com (Martin Minow) Newsgroups: comp.sys.mac.programmer Subject: Re: textEdit 32000 char barrier - advice sought Message-ID: <2062@mountn.dec.com> Date: 17 Dec 90 15:25:42 GMT References: <32576.276B8C23@stjhmc.fidonet.org> Reply-To: minow@mountn.UUCP (Martin Minow) Organization: Digital Equipment Corporation Lines: 29 In article <32576.276B8C23@stjhmc.fidonet.org> Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) writes: >audit038@spacm1.spac.spc.com writes in a message to All > >A> I need the ability to scroll thru more than 32000 characters >A> in textEdit [...] Anyone have ideas on this or know where I >can find source code? > >MacTutor recently had an article (with sources) to do this by replacing the >TEdit calls with ones that handle up to 2^32 bytes. I can't find it offhand, >but I believe that the author frequents this board, so he will probably answer >in depth (if not, I'll find the mag and post a reference). The article appeared in Feb + March 1990 MacTutor. It will probably re-appear in their year-end collection. Rather than type the code in and debug it (and discover that it intentionally does not include data-management algorithms), I would recommend that you look at one of the commercial products (these are advertised in MacTutor). These have the advantage of support (if something goes wrong, the company has a certain obligation to fix it) and a better data storage mechanism. The code I wrote handles large file sizes very slowly. It is probably most useful as an example of what you have to do to implement a minimal text editor. Martin Minow minow@bolt.enet.dec.com