1 #import "ITWindowEffect.h"
4 @implementation ITWindowEffect
7 - (id)initWithWindow:(NSWindow *)window
9 if ( (self = [super init]) ) {
11 _window = [window retain];
12 _effectTime = DEFAULT_EFFECT_TIME;
13 _effectProgress = 0.00;
16 if ( [window conformsToProtocol:@protocol(ITWindowPositioning)] ) {
17 _verticalPosition = (ITVerticalWindowPosition)[window verticalPosition];
18 _horizontalPosition = (ITHorizontalWindowPosition)[window horizontalPosition];
20 NSLog(@"ITWindowEffect - initWithWindow: - window does not conform to ITWindowPositioning.");
21 _verticalPosition = ITWindowPositionBottom;
22 _horizontalPosition = ITWindowPositionLeft;
33 - (void)setWindow:(NSWindow *)newWindow
40 NSLog(@"ITWindowEffect does not implement performAppear.");
45 NSLog(@"ITWindowEffect does not implement performVanish.");