X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f7665c2fca31bcea0750b3de74e0aedba934b153..7a218424c6a92eb4979564a7260f862edd46052d:/ITSplashWindow.m diff --git a/ITSplashWindow.m b/ITSplashWindow.m index 697e99e..63d6923 100644 --- a/ITSplashWindow.m +++ b/ITSplashWindow.m @@ -3,9 +3,8 @@ @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]) ) { +- (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]; @@ -13,9 +12,12 @@ return self; } -- (BOOL)canBecomeKeyWindow -{ +- (BOOL)canBecomeKeyWindow { return YES; } -@end +- (BOOL)isKeyWindow { + return YES; +} + +@end \ No newline at end of file