Eliminate a few more string constants.

This commit is contained in:
Jake Petroules committed 2014-08-27 20:53:38 -04:00
1 parent 8d74807b23
commit 89081ca030
3 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -204,7 +204,11 @@
if ([appcastItems count])
{
NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wselector"
// @selector(date) is from SUAppcastItem
NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:NSStringFromSelector(@selector(date)) ascending:NO];
#pragma clang diagnostic pop
[appcastItems sortUsingDescriptors:@[sort]];
self.items = appcastItems;
}
+1 -1
View File
@@ -105,7 +105,7 @@
NSString *theInfoURL = dict[SURSSElementLink];
if (theInfoURL) {
if (![theInfoURL isKindOfClass:[NSString class]]) {
SULog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type.");
SULog(@"%@ -%@ Info URL is not of valid type.", NSStringFromClass([self class]), NSStringFromSelector(_cmd));
} else {
self.infoURL = [NSURL URLWithString:theInfoURL];
}
+1 -1
View File
@@ -44,7 +44,7 @@ typedef struct {
if (aBundle == nil) aBundle = [NSBundle mainBundle];
self.bundle = aBundle;
if (![self.bundle bundleIdentifier]) {
SULog(@"Error: the bundle being updated at %@ has no CFBundleIdentifier! This will cause preference read/write to not work properly.", self.bundle);
SULog(@"Error: the bundle being updated at %@ has no %@! This will cause preference read/write to not work properly.", self.bundle, kCFBundleIdentifierKey);
}
self.defaultsDomain = [self.bundle objectForInfoDictionaryKey:SUDefaultsDomainKey];