Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

orderOut, you moron ...

  • Loading branch information...
commit d196c6812084b0e60f6a1bde4796c2253eda80fd 1 parent 6eaf343
@uliwitness authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 NSWindow+ULIZoomEffect.m
View
8 NSWindow+ULIZoomEffect.m
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.