- [_window setEntryEffect:entryEffect];
-
- if ( exitTag == 2100 ) {
- exitEffect = [[[ITCutWindowEffect alloc] initWithWindow:_window] autorelease];
- } else if ( exitTag == 2102 ) {
- exitEffect = [[[ITSlideVerticallyWindowEffect alloc] initWithWindow:_window] autorelease];
- } else if ( exitTag == 2103 ) {
- exitEffect = [[[ITSlideHorizontallyWindowEffect alloc] initWithWindow:_window] autorelease];
- } else if ( exitTag == 2104 ) {
- exitEffect = [[[ITPivotWindowEffect alloc] initWithWindow:_window] autorelease];
+ if ( [classList containsObject:NSClassFromString(exitClass)] ) {
+ exitEffect = [[[NSClassFromString(exitClass) alloc] initWithWindow:_window] autorelease];