From 84dc841e6413c792697d1e7e3057f68751ffeda9 Mon Sep 17 00:00:00 2001 From: Wolfgang Lux Date: Sat, 4 Dec 2010 08:08:50 +0000 Subject: [PATCH] Don't ask for a project directory with an extension project or pcproj when creating a new project in PC and do not arbitrarily strip extensions from the project name. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31706 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Framework/PCProjectManager.m | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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 ||