home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / PostScript / Bezier / Source / DelayInfo.m < prev    next >
Encoding:
Text File  |  1990-04-24  |  942 b   |  51 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "DelayInfo.h"
  5. #import <appkit/Window.h>
  6. #import <appkit/Application.h>
  7.  
  8. @implementation DelayInfo
  9.  
  10. + new                // make sure that infoPanel is nil.
  11. {
  12.   self = [super new];
  13.   infoPanel=nil;
  14.   return self;
  15. }
  16.  
  17. - setInfoPanel:anObject        // set the infoPanel.
  18. {
  19.     infoPanel = anObject;
  20.     return self;
  21. }
  22.  
  23. - infoPanel            // return the infoPanel, load it if needed.
  24. {
  25.   if( !infoPanel)
  26.     [NXApp loadNibSection:"InfoPanel.nib" owner:self withNames:NO];
  27.   return infoPanel;
  28. }
  29.  
  30. - info:sender            // make the info panel be up there.
  31. {
  32.   [[self infoPanel] makeKeyAndOrderFront:sender];
  33.   return self;
  34. }
  35.  
  36. // Are these useful?  I think not.  Not expensive, though.
  37. - write:(NXTypedStream *)stream
  38. {
  39.     [super write:stream];
  40.     NXWriteObjectReference( stream, infoPanel);
  41.     return self;
  42. }
  43. - read:(NXTypedStream *)stream
  44. {
  45.     [super read:stream];
  46.     infoPanel=NXReadObject( stream);
  47.     return self;
  48. }
  49.  
  50. @end
  51.