- } else if ( _visibilityState == ITTransientStatusWindowAppearingState ) {
- // Window is appearing. Do nothing.
- } else if ( _visibilityState == ITTransientStatusWindowVanishingState ) {
- NSLog(@"%i", _visibilityState);
- if ( _exitEffect == nil ) {
- [self orderFront:self];
- _visibilityState = ITTransientStatusWindowVisibleState;
- } else {
- _visibilityState = ITTransientStatusWindowAppearingState;
- [_exitEffect cancelVanish];
- _visibilityState = ITTransientStatusWindowVisibleState;
- }
- [self startVanishTimer];
+ } else if ( _visibilityState == ITWindowAppearingState ) {
+ // Window is on its way in. Do nothing.
+ } else if ( _visibilityState == ITWindowVanishingState ) {
+ // Window is on its way out. Cancel the vanish.
+ [_exitEffect cancelVanish];