+- (IBAction)appear:(id)sender
+{
+ if ( _visibilityState == ITTransientStatusWindowHiddenState ) {
+ // Window is hidden. Appear as normal, and start the timer.
+ [_entryEffect performAppear];
+ } else if ( _visibilityState == ITTransientStatusWindowVisibleState ) {
+ // Window is completely visible. Simply reset the timer.
+ [self startVanishTimer];
+ } else if ( _visibilityState == ITTransientStatusWindowAppearingState ) {
+ // Window is on its way in. Do nothing.
+ } else if ( _visibilityState == ITTransientStatusWindowVanishingState ) {
+ // Window is on its way out. Cancel the vanish.
+ [_exitEffect cancelVanish];
+ }
+}
+
+- (IBAction)vanish:(id)sender
+{
+ if ( _visibilityState == ITTransientStatusWindowVisibleState ) {
+ // Window is totally visible. Perform exit effect.
+ [_exitEffect performVanish];
+ } else if ( _visibilityState == ITTransientStatusWindowHiddenState ) {
+ // Window is hidden. Do nothing.
+ } else if ( _visibilityState == ITTransientStatusWindowAppearingState ) {
+ // Window is on its way in. Cancel appear.
+ [_entryEffect cancelAppear];
+ } else if ( _visibilityState == ITTransientStatusWindowVanishingState ) {
+ // Window is on its way out. Do nothing.
+ }
+}
+
+- (ITWindowVisibilityState)visibilityState