X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f7665c2fca31bcea0750b3de74e0aedba934b153..3055b035aa851467097d35d886890f272dc90ee7:/ITTransientStatusWindow.m diff --git a/ITTransientStatusWindow.m b/ITTransientStatusWindow.m index 3f01c35..44a0b90 100755 --- a/ITTransientStatusWindow.m +++ b/ITTransientStatusWindow.m @@ -86,6 +86,7 @@ static ITTransientStatusWindow *staticWindow = nil; _exitEffect = nil; _reallyIgnoresEvents = YES; _exitTimer = nil; + [self setScreen:[NSScreen mainScreen]]; // if ( _backgroundType == ITTransientStatusWindowRounded ) { // _contentSubView = contentView; @@ -101,6 +102,11 @@ static ITTransientStatusWindow *staticWindow = nil; return self; } +- (void)dealloc +{ + [_screen release]; + [super dealloc]; +} /*************************************************************************/ #pragma mark - @@ -183,6 +189,17 @@ static ITTransientStatusWindow *staticWindow = nil; } } +- (void)setScreen:(NSScreen *)newScreen +{ + [_screen release]; + _screen = [newScreen retain]; +} + +- (NSScreen *)screen +{ + return _screen; +} + - (void)setSizing:(ITTransientStatusWindowSizing)newSizing { _sizing = newSizing;