mirror of
https://github.com/TermiT/Flycut.git
synced 2025-02-21 22:43:15 +08:00
- Fix build warnings
This commit is contained in:
parent
c1d8526575
commit
5a3939f0dd
2 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ CGFloat SRAnimationEaseInOut(CGFloat t) {
|
||||||
defaultButton:[[error localizedRecoveryOptions] objectAtIndex:0U]
|
defaultButton:[[error localizedRecoveryOptions] objectAtIndex:0U]
|
||||||
alternateButton:nil
|
alternateButton:nil
|
||||||
otherButton:nil
|
otherButton:nil
|
||||||
informativeTextWithFormat:(reason ? reason : @"")];
|
informativeTextWithFormat:@"%@", reason ? reason : @""];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -199,11 +199,11 @@ typedef NSInteger NSWindowAnimationBehavior;
|
||||||
|
|
||||||
// Create a borderless window that shows and contains the given image:
|
// Create a borderless window that shows and contains the given image:
|
||||||
|
|
||||||
-(NSWindow*) uli_animationWindowForZoomEffectWithImage: (NSImage*)snapshotImage
|
-(ULIQuicklyAnimatingWindow*) uli_animationWindowForZoomEffectWithImage: (NSImage*)snapshotImage
|
||||||
{
|
{
|
||||||
NSRect myFrame = [self frame];
|
NSRect myFrame = [self frame];
|
||||||
myFrame.size = [snapshotImage size];
|
myFrame.size = [snapshotImage size];
|
||||||
NSWindow * animationWindow = [[ULIQuicklyAnimatingWindow alloc] initWithContentRect: myFrame styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO];
|
ULIQuicklyAnimatingWindow * animationWindow = [[ULIQuicklyAnimatingWindow alloc] initWithContentRect: myFrame styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO];
|
||||||
[animationWindow setOpaque: NO];
|
[animationWindow setOpaque: NO];
|
||||||
|
|
||||||
if( [animationWindow respondsToSelector: @selector(setAnimationBehavior:)] )
|
if( [animationWindow respondsToSelector: @selector(setAnimationBehavior:)] )
|
||||||
|
@ -241,7 +241,7 @@ typedef NSInteger NSWindowAnimationBehavior;
|
||||||
NSRect myFrame = [self frame];
|
NSRect myFrame = [self frame];
|
||||||
NSRect poppedFrame = NSInsetRect(myFrame, -20, -20);
|
NSRect poppedFrame = NSInsetRect(myFrame, -20, -20);
|
||||||
myFrame.size = snapshotImage.size;
|
myFrame.size = snapshotImage.size;
|
||||||
NSWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage];
|
ULIQuicklyAnimatingWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage];
|
||||||
[animationWindow setAnimationResizeTime: 0.025];
|
[animationWindow setAnimationResizeTime: 0.025];
|
||||||
[animationWindow setFrame: myFrame display: YES];
|
[animationWindow setFrame: myFrame display: YES];
|
||||||
[animationWindow orderFront: nil];
|
[animationWindow orderFront: nil];
|
||||||
|
|
Loading…
Reference in a new issue