From 5a3939f0dd0c7e184bb76a73c9a33806c8b0e371 Mon Sep 17 00:00:00 2001 From: Dounan Shi Date: Fri, 22 Aug 2014 10:39:54 -0700 Subject: [PATCH] - Fix build warnings --- ShortcutRecorder/SRCommon.m | 2 +- UI/NSWindow+ULIZoomEffect.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ShortcutRecorder/SRCommon.m b/ShortcutRecorder/SRCommon.m index d453ee2..4ca769c 100644 --- a/ShortcutRecorder/SRCommon.m +++ b/ShortcutRecorder/SRCommon.m @@ -245,7 +245,7 @@ CGFloat SRAnimationEaseInOut(CGFloat t) { defaultButton:[[error localizedRecoveryOptions] objectAtIndex:0U] alternateButton:nil otherButton:nil - informativeTextWithFormat:(reason ? reason : @"")]; + informativeTextWithFormat:@"%@", reason ? reason : @""]; } @end diff --git a/UI/NSWindow+ULIZoomEffect.m b/UI/NSWindow+ULIZoomEffect.m index a0ccad7..3f7775e 100644 --- a/UI/NSWindow+ULIZoomEffect.m +++ b/UI/NSWindow+ULIZoomEffect.m @@ -199,11 +199,11 @@ typedef NSInteger NSWindowAnimationBehavior; // 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]; 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]; if( [animationWindow respondsToSelector: @selector(setAnimationBehavior:)] ) @@ -241,7 +241,7 @@ typedef NSInteger NSWindowAnimationBehavior; NSRect myFrame = [self frame]; NSRect poppedFrame = NSInsetRect(myFrame, -20, -20); myFrame.size = snapshotImage.size; - NSWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage]; + ULIQuicklyAnimatingWindow * animationWindow = [self uli_animationWindowForZoomEffectWithImage: snapshotImage]; [animationWindow setAnimationResizeTime: 0.025]; [animationWindow setFrame: myFrame display: YES]; [animationWindow orderFront: nil];