Annotation of chimera/SplashScreenWindow.h, revision 1.4

1.1       macserv     1: //
                      2: //  SplashScreenWindow.h
                      3: //  Chimera
                      4: //
                      5: //  Created by Matt L.  Judy on Sat Mar 09 2002.
                      6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
                      7: //
                      8: 
1.4     ! pinkerto    9: #undef DARWIN
1.1       macserv    10: #import <Cocoa/Cocoa.h>
                     11: 
                     12: @interface SplashScreenWindow : NSWindow {
1.3       macserv    13:     NSImage        *_splashImage;
                     14:     NSTextField    *_statusField;
1.1       macserv    15: }
                     16: 
1.3       macserv    17: // This method inits the window and displays it, slightly proud of center,
                     18: // and at the size of the image it displays.
                     19: //
1.1       macserv    20: // The splash method should be used in your main controller's init method
1.3       macserv    21: // in this fashion:  splashWindow = [[SplashScreenWindow alloc] splashImage:nil withFade:NO withStatusRect:someRect];
                     22: //
                     23: // Passing nil to splashImage will attempt to load [NSImage imageNamed:@"splash"] instead.
                     24: // If that fails, the app icon will be displayed.
                     25: //
1.1       macserv    26: // The window will release itself whenever you send it the close message.
1.4     ! pinkerto   27: -(id)splashImage:(NSImage *)splashImage withStatusRect:(NSRect)statusRect;
1.2       macserv    28: 
1.3       macserv    29: -(NSString *)statusText;
1.2       macserv    30: -(void)setStatusText:(NSString *)newText;
1.1       macserv    31: 
                     32: 
                     33: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>