- if ( YES ) {
- [self setPivot:315.0];
- _effectProgress = 0.0;
- [_window setAlphaValue:0.0];
- [_window orderFront:self];
- _effectTimer = [NSTimer scheduledTimerWithTimeInterval:(1.0 / EFFECT_FPS)
- target:self
- selector:@selector(pivotStep)
- userInfo:nil
- repeats:YES];
- } else {
- [_window orderOut:self];
- }
+ [self appearFinish];
+ [_window orderOut:self];
+ [self setPivot:0.0];
+ [_window setAlphaValue:1.0];
+ // Cast so the compiler won't gripe
+ [(ITTransientStatusWindow *)_window setVisibilityState:ITTransientStatusWindowHiddenState];
+}
+
+- (void)cancelVanish
+{
+ [self vanishFinish];
+ [self setPivot:0.0];
+ [_window setAlphaValue:1.0];
+ [_window orderFront:self];
+ [_window display];
+ // Cast so the compiler won't gripe
+ [(ITTransientStatusWindow *)_window setVisibilityState:ITTransientStatusWindowVisibleState];