Huge audit of ITKit, mostly everything has been updated to current coding
[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         if ((self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])) {
8                 [self setOpaque:NO];
9                 [self setBackgroundColor:[NSColor clearColor]];
10                 [self setHasShadow:YES];
11         }
12         return self;
13 }
14
15 - (BOOL)canBecomeKeyWindow {
16         return YES;
17 }
18
19 - (BOOL)isKeyWindow {
20         return YES;
21 }
22
23 @end