home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Utilities / Comics-1.0-MIS / AboutBox.subproj / AboutBoxController.m < prev    next >
Encoding:
Text File  |  1997-09-25  |  1.1 KB  |  41 lines

  1. /*
  2.  File:       AboutBoxController.m
  3.  
  4.  Contains:   Source code for the Controller of the "About Comics" window
  5.  
  6.  Written by: Eric Simenel
  7.  
  8.  Created:    May 1997
  9.  
  10.  Copyright:  (c)1997 by Apple Computer, Inc., all rights reserved.
  11.  
  12.  Change History (most recent first):
  13.  
  14.  You may incorporate this sample code into your applications without
  15.  restriction, though the sample code has been provided "AS IS" and the
  16.  responsibility for its operation is 100% yours.  However, what you are
  17.  not permitted to do is to redistribute the source as "DSC Sample Code"
  18.  after having made changes. If you're going to re-distribute the source,
  19.  we require that you make it clear in the source that the code was
  20.  descended from Apple Sample Code, but that you've made changes.
  21. */
  22.  
  23. #import "AboutBoxController.h"
  24.  
  25. @implementation AboutBoxController
  26.  
  27. - (void)show:(id)sender
  28. {
  29.     if (!panel)
  30.       {
  31.         if (![NSBundle loadNibNamed:@"AboutBox" owner:self])
  32.           {
  33.             NSLog(@"Unable to load AboutBox.nib");
  34.             return;
  35.           }
  36.       }
  37.     [panel makeKeyAndOrderFront:self];
  38. }
  39.  
  40. @end
  41.