a41d7e109248f392b0179818d0a0537d75bc7832
[ITKit.git] / ITSplashWindow.m
1 #import "ITSplashWindow.h"
2 #import "ITSplashView.h"
3
4 @implementation ITSplashWindow
5
6 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
7 {
8         if ( (self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) ) {
9                 [self setOpaque:NO];
10                 [self setBackgroundColor:[NSColor clearColor]];
11                 [self setHasShadow:YES];
12         }
13         return self;
14 }
15
16 - (BOOL)canBecomeKeyWindow
17 {
18         return YES;
19 }
20
21 - (BOOL)isKeyWindow
22 {
23         return YES;
24 }
25
26 @end