home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Lines / MyApp.m < prev    next >
Text File  |  1992-02-09  |  631b  |  29 lines

  1. /*
  2.  * MyApp.m, subclass of Application for doing some central stuff...
  3.  * Author: Ali Ozer
  4.  * Written October 1990; last updated Feb 1992.
  5.  *
  6.  * You may freely copy, distribute and reuse the code in this example.
  7.  * NeXT disclaims any warranty of any kind, expressed or implied,
  8.  * as to its fitness for any particular use.
  9.  */
  10.  
  11. #import <appkit/appkit.h>
  12. #import "MyApp.h"
  13.  
  14. @implementation MyApp
  15.  
  16. // Method to load the .nib file for the info panel.
  17.  
  18. - displayInfoPanel:sender
  19. {
  20.     if (!infoPanel) {
  21.     [NXApp loadNibSection:"InfoPanel.nib" owner:self];
  22.     }
  23.     [infoPanel makeKeyAndOrderFront:NULL];
  24.     
  25.     return self;
  26. }
  27.  
  28. @end
  29.