don't use QOS_CLASS_* on iOS <8
This commit is contained in:
parent
d60cd3a189
commit
739e763089
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue