mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Changed NSSortDescriptor key input to allow for removal of pragma
This commit is contained in:
1 parent
f1132002b9
commit
f7629eb044
1 file changed
+1
-5
Vendored
+1
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user