From f7629eb044528d533a9a7ac8a4db7cb1f5a98c92 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 27 Oct 2014 13:52:03 -0700 Subject: [PATCH] Changed NSSortDescriptor key input to allow for removal of pragma --- Sparkle/SUAppcast.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sparkle/SUAppcast.m b/Sparkle/SUAppcast.m index 196267fb..2bfaedcc 100644 --- a/Sparkle/SUAppcast.m +++ b/Sparkle/SUAppcast.m @@ -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; }