File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,19 @@ - (IBAction)handleDroppedFile:(DragFileView *)sender {
57
57
if (result == NSModalResponseOK ) {
58
58
NSURL *destinationURL = openPanel.URL ;
59
59
60
- BuildSettingExtractor *buildSettingExtractor = [[BuildSettingExtractor alloc ] init ];
61
- buildSettingExtractor.includeBuildSettingInfoComments = [[NSUserDefaults standardUserDefaults ] boolForKey: TPSIncludeBuildSettingInfoComments];
62
-
63
- [buildSettingExtractor extractBuildSettingsFromProject: fileURL toDestinationFolder: destinationURL];
64
-
65
- BOOL openInFinder = [[NSUserDefaults standardUserDefaults ] boolForKey: TPSOpenDirectoryInFinder];
66
- if (openInFinder) {
67
- [[NSWorkspace sharedWorkspace ] openURL: destinationURL];
68
- }
60
+ // Perform the extraction in the background.
61
+ dispatch_async (dispatch_get_global_queue (QOS_CLASS_USER_INITIATED, 0 ), ^{
62
+ BuildSettingExtractor *buildSettingExtractor = [[BuildSettingExtractor alloc ] init ];
63
+ buildSettingExtractor.includeBuildSettingInfoComments = [[NSUserDefaults standardUserDefaults ] boolForKey: TPSIncludeBuildSettingInfoComments];
64
+
65
+ [buildSettingExtractor extractBuildSettingsFromProject: fileURL toDestinationFolder: destinationURL];
66
+
67
+ BOOL openInFinder = [[NSUserDefaults standardUserDefaults ] boolForKey: TPSOpenDirectoryInFinder];
68
+ if (openInFinder) {
69
+ [[NSWorkspace sharedWorkspace ] openURL: destinationURL];
70
+ }
71
+ });
69
72
}
70
-
71
73
}];
72
74
}
73
75
}
You can’t perform that action at this time.
0 commit comments