Fixed: if .xcodeproj was missing, it was not created.

Now if either .XcodeSupport or the .xcodeproj is missing, both are recreated to ensure they are in sync.

Also, when trying to open the Xcode project, if it is missing or cannot be opened, an alert is displayed and the user is given the option of regenerating the project.

Some code cleanup as well.
This commit is contained in:
Aparajita Fishman
2013-04-26 14:27:47 -04:00
parent 811c7444df
commit 52a53fb8d1
3 changed files with 64 additions and 45 deletions
+1 -4
View File
@@ -298,10 +298,7 @@ AppController *SharedAppControllerInstance = nil;
else
{
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
NSAlert *alert = [[NSAlert alloc] init];
alert.messageText = @"Project not found.";
alert.informativeText = [NSString stringWithFormat:@"%@ %@", path, !exists ? @"no longer exists." : @"is not a directory."];
[alert runModal];
NSRunAlertPanel(@"Project not found.", @"%@ %@", nil, nil, nil, path, !exists ? @"no longer exists." : @"is not a directory.");
}
[defaults setObject:projectHistory forKey:kDefaultXCCProjectHistory];