+- (void)pivotFinish
+{
+ if ( _visibilityState == ITTransientStatusWindowEnteringState ) {
+ [_effectTimer invalidate];
+ _effectTimer = nil;
+ _effectProgress = 0.0;
+ _visibilityState = ITTransientStatusWindowVisibleState;
+ } else {
+ //backwards
+ }
+}
+
+
+- (void)setPivot:(float)angle
+{
+ float degAngle = (angle * (pi / 180));
+ CGAffineTransform transform = CGAffineTransformMakeRotation(degAngle);
+
+ // Set pivot point
+ transform.tx = -32.0;
+ transform.ty = [self frame].size.height + 32.0;
+
+ CGSSetWindowTransform([NSApp contextID],
+ (CGSWindowID)[self windowNumber],
+ CGAffineTransformTranslate(transform,
+ (([self frame].origin.x - 32.0) * -1),
+ (([[self screen] frame].size.height - ([self frame].origin.y) + 32.0) * -1) ));
+}