Fairly large ITTSW checkin.
[ITKit.git] / ITCutWindowEffect.m
diff --git a/ITCutWindowEffect.m b/ITCutWindowEffect.m
new file mode 100755 (executable)
index 0000000..a42fcc8
--- /dev/null
@@ -0,0 +1,42 @@
+#import "ITCutWindowEffect.h"
+#import "ITTransientStatusWindow.h"
+
+
+@implementation ITCutWindowEffect
+
+
+/*************************************************************************/
+#pragma mark -
+#pragma mark APPEAR METHODS
+/*************************************************************************/
+
+- (void)performAppear
+{
+    [_window orderFront:self];
+    [self setWindowVisibility:ITTransientStatusWindowVisibleState];
+}
+
+- (void)cancelAppear
+{
+    [self performVanish];
+}
+
+
+/*************************************************************************/
+#pragma mark -
+#pragma mark VANISH METHODS
+/*************************************************************************/
+
+- (void)performVanish
+{
+    [_window orderOut:self];
+    [self setWindowVisibility:ITTransientStatusWindowHiddenState];
+}
+
+- (void)cancelVanish
+{
+    [self performAppear];
+}
+
+
+@end