home *** CD-ROM | disk | FTP | other *** search
- /*
- File: AboutBoxController.m
-
- Contains: Source code for the Controller of the "About Comics" window
-
- Written by: Eric Simenel
-
- Created: May 1997
-
- Copyright: (c)1997 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- You may incorporate this sample code into your applications without
- restriction, though the sample code has been provided "AS IS" and the
- responsibility for its operation is 100% yours. However, what you are
- not permitted to do is to redistribute the source as "DSC Sample Code"
- after having made changes. If you're going to re-distribute the source,
- we require that you make it clear in the source that the code was
- descended from Apple Sample Code, but that you've made changes.
- */
-
- #import "AboutBoxController.h"
-
- @implementation AboutBoxController
-
- - (void)show:(id)sender
- {
- if (!panel)
- {
- if (![NSBundle loadNibNamed:@"AboutBox" owner:self])
- {
- NSLog(@"Unable to load AboutBox.nib");
- return;
- }
- }
- [panel makeKeyAndOrderFront:self];
- }
-
- @end
-