From 017b5085eb0fab4339b46097f0510ffbc2cd87d6 Mon Sep 17 00:00:00 2001 From: James Dempsey Date: Tue, 12 May 2015 04:46:27 -0700 Subject: [PATCH] Fix crash on Mavericks caused by using unavailable symbol. Now using the older dispatch priority queue priority constant instead of the QOS constant. Fixes #2 --- BuildSettingExtractor/AppDelegate.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BuildSettingExtractor/AppDelegate.m b/BuildSettingExtractor/AppDelegate.m index df453f1..3b58a9a 100644 --- a/BuildSettingExtractor/AppDelegate.m +++ b/BuildSettingExtractor/AppDelegate.m @@ -58,7 +58,9 @@ - (IBAction)handleDroppedFile:(DragFileView *)sender { NSURL *destinationURL = openPanel.URL; // Perform the extraction in the background. - dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{ + // Using DISPATCH_QUEUE_PRIORITY_HIGH which is available on 10.9 + // Move to QOS_CLASS_USER_INITIATED when 10.10 is the deployment target + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ BuildSettingExtractor *buildSettingExtractor = [[BuildSettingExtractor alloc] init]; buildSettingExtractor.includeBuildSettingInfoComments = [[NSUserDefaults standardUserDefaults] boolForKey:TPSIncludeBuildSettingInfoComments];