[comp.sys.next] scrolling text, lists, whatever

greid@adobe.com (Glenn Reid) (07/18/89)

Hi,

I'm looking for suggestions about the best way to put a "list" of
miscellaneous text things into a little scrolling box in a window, in a
line-oriented fashion.  For example, how is the Font Panel's scrolling
list implemented, or the Browser?

In particular, I'd like to be able to make sequential calls to some
method like  addStringToList:stringptr.  With TextForms, you get a
simple interface like setStringValue:, but if you graduate to Scroll
Views, it seems that you have to read an entire stream, rather than
just being able to supply strings one at a time.  The View class seems
too general in this case.

The data for these "lists" (for lack of a better name) will likely come
from a pipe, but some of it may be generated synthetically.

Thanks for any info or suggestions....

Glenn Reid
Adobe Systems

rmf00365@uxa.cso.uiuc.edu (07/19/89)

> I'm looking for suggestions about the best way to put a "list" of
> miscellaneous text things into a little scrolling box in a window, in a
> line-oriented fashion.

Using IB, you can put a scrollingView in your application.  This defaults with
a docView of a Text object.  If you free this, you can then set the docView
to any view you want including custom views.


Michael Rutman
Softmed