X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f7665c2fca31bcea0750b3de74e0aedba934b153..650aa30b6ac73ecb0727ec4409f02bf90adf51f5:/ITSplashWindow.m?ds=inline 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