Permalink
Browse files

orderOut, you moron ...

  • Loading branch information...
1 parent 6eaf343 commit d196c6812084b0e60f6a1bde4796c2253eda80fd @uliwitness committed Mar 5, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 NSWindow+ULIZoomEffect.m
View
@@ -152,14 +152,16 @@ -(void) orderOutWithZoomEffectToRect: (NSRect)globalEndPoint
myFrame.size = snapshotImage.size;
NSWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage];
[animationWindow setFrame: myFrame display: YES];
+
+ NSDisableScreenUpdates();
[animationWindow orderFront: nil];
+ [self orderOut: nil];
+ NSEnableScreenUpdates();
+
[animationWindow setFrame: globalEndPoint display: YES animate: YES];
- NSDisableScreenUpdates();
[animationWindow close];
- [self orderFront: nil];
- NSEnableScreenUpdates();
}
@end

0 comments on commit d196c68

Please sign in to comment.