{
if ( _visibilityState == ITTransientStatusWindowHiddenState ) {
// Window is hidden. Appear as normal, and start the timer.
- if ( _entryEffect == nil ) {
- [self orderFront:self];
- _visibilityState = ITTransientStatusWindowVisibleState;
- } else {
- [_entryEffect performAppear];
- }
- [self startVanishTimer];
+ [_entryEffect performAppear];
} else if ( _visibilityState == ITTransientStatusWindowVisibleState ) {
// Window is completely visible. Simply reset the timer.
[self startVanishTimer];
// Window is on its way in. Do nothing.
} else if ( _visibilityState == ITTransientStatusWindowVanishingState ) {
// Window is on its way out. Cancel the vanish.
- if ( _exitEffect == nil ) {
- [self orderFront:self];
- _visibilityState = ITTransientStatusWindowVisibleState;
- } else {
- [_exitEffect cancelVanish];
- }
- [self startVanishTimer];
+ [_exitEffect cancelVanish];
}
}
{
if ( _visibilityState == ITTransientStatusWindowVisibleState ) {
// Window is totally visible. Perform exit effect.
- if ( _exitEffect == nil ) {
- [self orderOut:self];
- _visibilityState = ITTransientStatusWindowHiddenState;
- } else {
- [_exitEffect performVanish];
- }
- [self startVanishTimer];
+ [_exitEffect performVanish];
} else if ( _visibilityState == ITTransientStatusWindowHiddenState ) {
// Window is hidden. Do nothing.
} else if ( _visibilityState == ITTransientStatusWindowAppearingState ) {
- (void)setVisibilityState:(ITWindowVisibilityState)newState
{
_visibilityState = newState;
+
+ if ( _visibilityState == ITTransientStatusWindowVisibleState ) {
+ [self startVanishTimer];
+ }
}
- (ITTransientStatusWindowExitMode)exitMode
_horizontalPosition = newPosition;
}
+- (float)effectProgress
+{
+ return _effectProgress;
+}
+
+- (void)setEffectProgress:(float)newProgress
+{
+ _effectProgress = newProgress;
+}
+
- (float)screenPadding
{
return _screenPadding;
- (void)startVanishTimer
{
-
+ // start timer, if appropriate
+ // if timer already exists, restart it.
}
@end