Added ITSplashScreen stuff. Added ITSplashScreen.h to ITKit header.
[ITKit.git] / ITSplashWindow.m
diff --git a/ITSplashWindow.m b/ITSplashWindow.m
new file mode 100644 (file)
index 0000000..697e99e
--- /dev/null
@@ -0,0 +1,21 @@
+#import "ITSplashWindow.h"
+#import "ITSplashView.h"
+
+@implementation ITSplashWindow
+
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
+{
+       if ( (self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) ) {
+               [self setOpaque:NO];
+               [self setBackgroundColor:[NSColor clearColor]];
+               [self setHasShadow:YES];
+       }
+       return self;
+}
+
+- (BOOL)canBecomeKeyWindow
+{
+       return YES;
+}
+
+@end