Expanded the download progress text field.

Added a step to preprocess feed URLs to remove quotes so that pre-processed plist files can have the URL defined in code.
Patch courtesy Philippe Casgrain.
This commit is contained in:
andym committed 2008-03-06 13:02:44 +00:00
1 parent ef89e4208d
commit 905306c096
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
<integer>6</integer>
</array>
<key>IBSystem Version</key>
<string>9B18</string>
<string>9C31</string>
<key>targetFramework</key>
<string>IBCocoaFramework</string>
</dict>
BIN
View File
Binary file not shown.
+3 -2
View File
@@ -217,15 +217,16 @@ static SUUpdater *sharedUpdater = nil;
updateInProgress = YES;
// A value in the user defaults overrides one in the Info.plist (so preferences panels can be created wherein users choose between beta / release feeds).
NSString *appcastString = [[SUUserDefaults standardUserDefaults] objectForKey:SUFeedURLKey];
NSString *appcastString = [[SUUserDefaults standardUserDefaults] objectForKey:SUFeedURLKey]; // if URL is quoted (because of pre-processing in plist files), remove quotes from the string
if (!appcastString)
appcastString = [hostBundle objectForInfoDictionaryKey:SUFeedURLKey];
if (!appcastString)
[NSException raise:@"SUNoFeedURL" format:@"You must specify the URL of the appcast as the SUFeedURLKey in either the Info.plist or the user defaults!"];
NSCharacterSet* quoteSet = [NSCharacterSet characterSetWithCharactersInString: @"\"\'"];
SUAppcast *appcast = [[SUAppcast alloc] init];
[appcast setDelegate:self];
[appcast fetchAppcastFromURL:[NSURL URLWithString:appcastString] parameters:[self feedParameters]];
[appcast fetchAppcastFromURL:[NSURL URLWithString:[appcastString stringByTrimmingCharactersInSet:quoteSet]] parameters:[self feedParameters]];
}
- (BOOL)newVersionAvailable