🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #132

"Best" way to append text in a ScrollView

#132
From: Todd Enders
Date: Wed, 04 Nov 1992 04:10
18 lines
1244 bytes
     This has probably been asked a lot, but humour me...

     I'm trying to put some text into a ScrollView, in the following fashion:

     [text_out setText:"foo!\n"];
     ...
     ** now I want to append some more text **

     The $64 question is what is the "best" way to do this?  I can't really
see a way short of sucking the existing text into a string and strcat()-ing
the new text on the end.  I fooled around with setSel::, but the new text
always overwrites the old.  I'm sure there's an easy/elegant way to do this, 
but I haven't seen it in any of the examples.  *HELP*!!!

Todd     enders@bolshoi.uucp     NeXTMail Welcome!!!
         uunet!bolshoi!enders
         enders@bolshoi.cc.misu.nodak.edu
Technical Details
Message-ID: <Bx6BM7.DG4@ns1.nodak.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!ns1.nodak.edu!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!ns1.nodak.edu!usenet
From: enders@bolshoi.cc.misu.NoDak.edu (Todd Enders)
Newsgroups: comp.sys.next.programmer
Subject: "Best" way to append text in a ScrollView
Message-ID: <Bx6BM7.DG4@ns1.nodak.edu>
Date: 4 Nov 92 04:10:55 GMT
Article-I.D.: ns1.Bx6BM7.DG4
Sender: usenet@ns1.nodak.edu (News login)
Reply-To: enders@bolshoi.uucp
Organization: North Dakota Higher Education Computing Network
Lines: 18
Nntp-Posting-Host: bolshoi.cc.misu.nodak.edu