From 9a32f6f21df2bb276803f8c90279d688d4aa4bee Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Sat, 19 Sep 2015 15:06:27 -0700 Subject: [PATCH] Add missing __bridge casts. --- TestApplication/SUTestApplicationDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index 8b0f1d55..09e98c71 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -28,7 +28,7 @@ static NSString * const UPDATED_VERSION = @"2.0"; NSBundle *mainBundle = [NSBundle mainBundle]; // Check if we are already up to date - if ([[mainBundle objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] isEqualToString:UPDATED_VERSION]) { + if ([[mainBundle objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey] isEqualToString:UPDATED_VERSION]) { NSAlert *alreadyUpdatedAlert = [[NSAlert alloc] init]; alreadyUpdatedAlert.messageText = @"Update succeeded!"; alreadyUpdatedAlert.informativeText = @"This is the updated version of Sparkle Test App.\n\nDelete and rebuild the app to test updates again."; @@ -85,7 +85,7 @@ static NSString * const UPDATED_VERSION = @"2.0"; assert(infoFileExists); NSMutableDictionary *infoDictionary = [[NSMutableDictionary alloc] initWithContentsOfURL:infoURL]; - infoDictionary[(NSString *)kCFBundleVersionKey] = UPDATED_VERSION; + infoDictionary[(__bridge NSString *)kCFBundleVersionKey] = UPDATED_VERSION; infoDictionary[@"CFBundleShortVersionString"] = UPDATED_VERSION; BOOL wroteInfoFile = [infoDictionary writeToURL:infoURL atomically:NO];