🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #99

Re: scrolling list

#99
From: William Lewis
Date: Thu, 20 Sep 1990 21:15
33 lines
2138 bytes
In article <90263.114405UH2@psuvm.psu.edu> UH2@psuvm.psu.edu (Lee Sailer) writes:
>In article <8381@helios.TAMU.EDU>, dcheslow@xerxes.tamu.edu (David A Cheslow)
>says:
>>i have need for a scroll view which contains a simple list of strings, such
>>that i can add a string to the end of the list and have the scrolling view
>>automatically updated..... i would appreciate any hints before i reinvent a
>>wheeel.
>
>Ah!  The big test.  Will someone provide a software IC to solve this
>problem, that can be plugged into the application and used without ado?
>Or will he end up reinventing the wheel?  Stay tuned...


   Actually, come to think of it, this should be do-able without actually
writing much code ... assuming you're on a NeXT =8) ... you can create
a ScrollView, set its docview to a matrix of textcells, and there you
go. You'd have to create a new textcell each time you wanted to add a
string but that shouldn't be too difficult. The problem with this
is it's sometimes unclear what messages you need to send to update the
display. I'm not near a NeXT so I can't say offhand.
   Or, you could use the "BrowserBay" and "BrowserMatrix" classes that
have been on the NeXT archives for a while (in fact, they're about the only
things in the classes/ directories). These look more like the Directory
Browser, and are meant to act like it, but you can probably tell the cells
not to allow themselves to be selected ... 
   And if you're *not* on a NeXT, maybe someone who is has benefitted from
this use of bandwidth... (Notice I wrote this entire article with only
reused code!)


-- 
wiml@milton.acs.washington.edu       Seattle, Washington  | No sig under
(William Lewis)   |  47 41' 15" N   122 42' 58" W  |||||||| construction
Technical Details
Message-ID: <7892@milton.u.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!milton!wiml
References: <8381@helios.TAMU.EDU> <90263.114405UH2@psuvm.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ogicse!milton!wiml
From: wiml@milton.u.washington.edu (William Lewis)
Newsgroups: comp.lang.objective-c
Subject: Re: scrolling list
Message-ID: <7892@milton.u.washington.edu>
Date: 20 Sep 90 21:15:18 GMT
References: <8381@helios.TAMU.EDU> <90263.114405UH2@psuvm.psu.edu>
Organization: University of Washington, Seattle
Lines: 33