Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!UTCVM.BITNET!JWANKERL From: JWANKERL@UTCVM.BITNET ("Josef W. Wankerl") Newsgroups: comp.sys.apple2 Subject: Re: TextEdit toolbox question Message-ID: <9005280330.AA15584@apple.com> Date: 26 May 90 19:05:28 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 39 On Thu, 24 May 90 10:47:34 GMT Jason Blochowiak said: >In an application that I'm writing, I'm planning on using a TEGetText() >call to grab the entire thing. Yep, that's how I thought about doing it. Afterall, you gotta do a TEGetText() anyhow when the stuff is going to be saved so if you don't have enough memory for a save it is probably reasonable not to allow a search/replace. I'd rather only work with one copy of the text though. >It would be really nice to have a TEGetSelectionText() or something >similar. Yep, that's what I was hoping for. It'd make life much simpler. >I do have a couple of questions: 1) Is there a simple, and clean, way >of telling if a TE record is dirty? I believe that TE automatically keeps track of a dirty flag for you. I don't have a TBRefIII handy so I can't tell ya exactly where, but there's one in there somewhere... look around where it defines the TERecord structure. >2) What about supporting Undo in a TE record? Undo for a cut/paste/clear would be easy for TE to do automatically. Heck, that's all I use undo for anyhow. An undo typing would indeed be more difficult. I don't even want to begin thinking about it... >-- > Jason Blochowiak - jason@madnix.UUCP >or, try: astroatc!nicmad!madnix!jason@spool.cs.wisc.edu > "Education, like neurosis, begins at home." - Milton R. Saperstein -- ===> Josef W. Wankerl, college student | "I am a Viking" -Y. Malmsteen ProLine: jwankerl@pro-gsplus | BITNET: JWANKERL@UTCVM InterNet: jwankerl@pro-gsplus.cts.com | UUCP: ...crash!pro-gsplus!jwankerl ARPA/DDN: ...crash!pro-gsplus!jwankerl@nosc.mil | I'm employed by EGO, GS+!