Create project in a path with the project name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31697 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-12-01 15:26:12 +00:00
parent eb2972f8fb
commit e9ecaf9b08

View file

@ -5,6 +5,7 @@
Authors: Philippe C.D. Robert
Serg Stoyan
Riccardo Mottola
This file is part of GNUstep.
@ -749,7 +750,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
NSString *className = [projectTypes objectForKey:projectType];
PCProject<ProjectType> *projectCreator;
PCProject *project = nil;
if ((project = [loadedProjects objectForKey: [aPath stringByDeletingLastPathComponent]]) != nil)
{
[[project projectWindow] makeKeyAndOrderFront:self];
@ -810,7 +811,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
multiple:NO
title:@"New Project"
accView:projectTypeAccessaryView];
filePath = [files objectAtIndex:0];
filePath = [[files objectAtIndex:0] stringByDeletingPathExtension];
if (filePath != nil)
{
if ([filePath rangeOfString: @" "].location != NSNotFound ||