Fix segfault when closing Gorm and Renaissance projects

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@18061 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2003-11-07 22:48:34 +00:00
parent 467e7fe100
commit ac94385c11
6 changed files with 11 additions and 1 deletions

View file

@ -114,6 +114,7 @@
rootCategories = [[NSDictionary
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
principalClassField = nil;
}
return self;

View file

@ -136,7 +136,8 @@ static PCGormProj *_creator = nil;
[fm copyPath:_file toPath:[path stringByAppendingPathComponent:@"main.m"] handler:nil];
// Copy the gorm wrapper
gormTemplatePath = [path stringByAppendingPathComponent: @"BaseInterface.gorm"];
//gormTemplatePath = [path stringByAppendingPathComponent: @"BaseInterface.gorm"];
gormTemplatePath = [path stringByAppendingPathComponent: [NSString stringWithFormat: @"%@.gorm", [path lastPathComponent]]];
_file = [[NSBundle bundleForClass:[self class]] pathForResource:@"BaseInterface" ofType:@"gorm"];
[fm copyPath:_file toPath:gormTemplatePath handler:nil];

View file

@ -199,6 +199,9 @@
rootCategories = [[NSDictionary
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
appClassField = nil;
appImageField = nil;
}
return self;

View file

@ -318,6 +318,7 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
[self setActiveProject:project];
[project setDelegate:self];
[self saveProject];
return YES;
}

View file

@ -188,6 +188,7 @@
dir = NSHomeDirectory();
}
[projectTypePopup selectItemAtIndex:0];
runResult = [sp runModalForDirectory:dir file:@""];
if (runResult == NSOKButton)
{

View file

@ -152,6 +152,9 @@
rootCategories = [[NSDictionary
dictionaryWithObjects:rootObjects forKeys:rootKeys] retain];
appClassField = nil;
appImageField = nil;
}
return self;