home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / Tutorial / Cookbook / 15.scrollView / MyScrollView.m < prev    next >
Encoding:
Text File  |  1993-01-19  |  483 b   |  25 lines

  1. #import "MyScrollView.h"
  2. #import "DocView.h"
  3. #import <appkit/Control.h>
  4.  
  5. @implementation MyScrollView
  6.  
  7. +newFrame:(const NXRect *)tF
  8. {
  9.     NXRect docRect;
  10.     id myDocView;
  11.     
  12.     // Create the newScrollView
  13.     self = [super newFrame:tF];
  14.         [[self setVertScrollerRequired:YES]
  15.            setHorizScrollerRequired:YES];
  16.     
  17.     // Create and install the docView
  18.     NXSetRect(&docRect, 0.0, 0.0, 500.0, 500.0);
  19.     myDocView = [DocView newFrame:&docRect];
  20.     [self setDocView:myDocView];
  21.     
  22.     return self;
  23. }
  24.  
  25.