X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/a8daf8ac0972b8b5b582a97b50889fec447f45a4..f7665c2fca31bcea0750b3de74e0aedba934b153:/ITSplashWindow.m diff --git a/ITSplashWindow.m b/ITSplashWindow.m new file mode 100644 index 0000000..697e99e --- /dev/null +++ b/ITSplashWindow.m @@ -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