diff --git a/ChangeLog b/ChangeLog index 769389e..a2563d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-04 Wolfgang Lux + + * Framework/PCProjectManager.m (-newProject): + Improve Riccardo's previous patch. Don't ask for a new project + directory with an extension project or pcproj and do not + arbitrarily strip extensions from the project name. + 2010-12-04 German Arias * Modules/Projects/Application/PCAppProject.m: diff --git a/Framework/PCProjectManager.m b/Framework/PCProjectManager.m index deeb745..4b83e27 100644 --- a/Framework/PCProjectManager.m +++ b/Framework/PCProjectManager.m @@ -800,18 +800,17 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; { NSArray *files; NSString *filePath; - NSArray *fileTypes = [NSArray arrayWithObjects:@"project",@"pcproj",nil]; NSString *projectType; PCProject *project; [self createProjectTypeAccessaryView]; - files = [fileManager filesOfTypes:fileTypes + files = [fileManager filesOfTypes:nil operation:PCSaveFileOperation multiple:NO title:@"New Project" accView:projectTypeAccessaryView]; - filePath = [[files objectAtIndex:0] stringByDeletingPathExtension]; + filePath = [files objectAtIndex:0]; if (filePath != nil) { if ([filePath rangeOfString: @" "].location != NSNotFound ||