home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / MiniExamples / CellScrollView / CellScrollView.h < prev    next >
Text File  |  1991-10-10  |  846b  |  38 lines

  1. /* CellScrollView.h:
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  *
  7.  * The CellScrollView is a subclass of scrollview that maintains a set of
  8.  * custom cells in a matrix.  The contents of each cell is derived from an
  9.  * external list of objects.  This approach separates the underlying data
  10.  * structure from the user interface.
  11.  */
  12.  
  13. #import <appkit/ScrollView.h>
  14. #import <objc/List.h>
  15.  
  16. @interface CellScrollView:ScrollView
  17. {
  18.   id    cellMatrix;        /* underying matrix of FooCells */
  19. }
  20.  
  21. - init;
  22.  
  23. - initFrame:(const NXRect *)frameRect;
  24.  
  25. - free;
  26.  
  27. - cellMatrix;
  28. /*
  29.  * return the underlying matrix of FooCells
  30.  */
  31.  
  32. - loadCellsFrom:(List *)fooObjects;
  33. /*
  34.  * Reload and redisplay the list of FooObjects.
  35.  */
  36.  
  37. @end
  38.