home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Examples / InfoWow-0.00-MIHS / src / Controller.m < prev    next >
Encoding:
Text File  |  1994-03-21  |  747 b   |  36 lines

  1.  
  2. #import "Controller.h"
  3. #import "WowView.h"
  4.  
  5. @implementation Controller
  6.  
  7. - infoPanel        // return the infoPanel, load it if needed.
  8. {
  9.     if (!infoPanel)
  10.         [NXApp loadNibSection:"InfoPanel.nib" owner:self withNames:NO];
  11.     return infoPanel;
  12. }
  13.  
  14. - info:sender        // make the info panel be up there.
  15. {
  16.     [[self infoPanel] orderFront:sender];
  17.     [niftyView start:self]; // will stop automatically on close by
  18.     // using window's delegate method -windowWillClose:
  19.     return self;
  20. }
  21.  
  22. - infoPanel2        // return the infoPanel, load it if needed.
  23. {
  24.     if (!infoPanel2)
  25.         [NXApp loadNibSection:"InfoPanel2.nib" owner:self withNames:NO];
  26.     return infoPanel2;
  27. }
  28.  
  29. - info2:sender        // make the info panel be up there.
  30. {
  31.     [[self infoPanel2] orderFront:sender];
  32.     return self;
  33. }
  34.  
  35. @end
  36.