Changed NSSortDescriptor key input to allow for removal of pragma

This commit is contained in:
Kevin Wojniak committed 2014-10-27 13:52:03 -07:00
1 parent f1132002b9
commit f7629eb044
1 file changed
+1 -5
+1 -5
View File
@@ -204,11 +204,7 @@
if ([appcastItems count])
{
#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
NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO];
[appcastItems sortUsingDescriptors:@[sort]];
self.items = appcastItems;
}