home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / MiniExamples / ScrollTiff / ImageReader.h next >
Encoding:
Text File  |  1991-03-21  |  730 b   |  31 lines

  1.  
  2. /*ImageReader.h
  3.  *   
  4.  * This header file defines the ImageReader class, which reads a TIFF file,
  5.  * allocates an NXImage to manage it, and displays it.
  6.  * 
  7.  * You may freely copy, distribute, and reuse the code in this example.
  8.  * NeXT disclaims any warranty of any kind, expressed or implied, as to
  9.  * its fitness for any particular use.
  10.  */
  11.  
  12.  
  13. #import <objc/Object.h>
  14.  
  15. /* 
  16.  * The ImageReader needs one outlet, which it uses to send image data
  17.  * to a TiffDocView (the DocView in the ScrollView of the application's
  18.  * main window), and ultimately to an NXImage.
  19.  */
  20.  
  21. @interface ImageReader:Object
  22. {
  23.     id    imageView;
  24. }
  25.  
  26. /* The readImage action opens a TIFF file and sends it to an NXImage object. */
  27.  
  28. - readImage:sender;
  29.  
  30. @end
  31.