Delete the extension .project at the name of the applications

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31590 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2010-11-06 05:50:22 +00:00
parent c1c7f004d4
commit 28c343707e
2 changed files with 8 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2010-11-05 German Arias <german@xelalug.org>
* Modules/Projects/Application/PCAppProject.m:
(-createProjectAt:) Delete the extension on the project
name to avoid file names like MyApp.project.plist
and an ugly name of the app (MyApp.project) at info panel.
2010-08-10 Sergii Stoian <stoyan255@ukr.net>
* Framework/PCProjectBrowser.m:
(-nameOfSelectedCategory): Return 'nil' if name of subproject

View file

@ -159,11 +159,8 @@
// Customise the project
[self setProjectPath:path];
[self setProjectName:[path lastPathComponent]];
if ([[projectName pathExtension] isEqualToString:@"subproj"])
{
projectName = [projectName stringByDeletingPathExtension];
}
[self setProjectName:[[path lastPathComponent] stringByDeletingPathExtension]];
[projectDict setObject:projectName forKey:PCProjectName];
[projectDict setObject:[[NSCalendarDate date] description]
forKey:PCCreationDate];