don't use QOS_CLASS_* on iOS <8

This commit is contained in:
Jesús A. Álvarez 2016-07-15 21:00:51 +02:00
parent d60cd3a189
commit 739e763089

View File

@ -55,7 +55,8 @@ static const char kDiskImageIconAttributeName[] = "net.namedfork.DiskImageIcon";
+ (void)loadIconForDiskImageAndNotify:(NSString *)path {
if ([NSThread isMainThread]) {
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
long queue = NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0 ? QOS_CLASS_USER_INITIATED : DISPATCH_QUEUE_PRIORITY_LOW;
dispatch_async(dispatch_get_global_queue(queue, 0), ^{
[self loadIconForDiskImageAndNotify:path];
});
return;