mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
save windows placements to a separate file with the username as a name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f00b0da00
commit
e8c6874eb1
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-03-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Framework/PCProject.m: save windows placements to a separate file with the username as name
|
||||
|
||||
2009-03-24 Sergii Stoian <stoyan255@gmail.com>
|
||||
|
||||
* Framework/PCProjectBuilder.m: Add some comments
|
||||
|
|
|
@ -334,9 +334,8 @@ NSString
|
|||
NSString *projectFile = nil;
|
||||
NSMutableDictionary *projectFileDict = nil;
|
||||
|
||||
projectFile = [projectPath stringByAppendingPathComponent:@"PC.project"];
|
||||
projectFileDict = [NSMutableDictionary
|
||||
dictionaryWithContentsOfFile:projectFile];
|
||||
projectFile = [projectPath stringByAppendingPathComponent:[NSUserName() stringByAppendingPathExtension:@"project"]];
|
||||
projectFileDict = [[NSMutableDictionary alloc] initWithCapacity:4];
|
||||
|
||||
// Project Window
|
||||
[windows setObject:[projectWindow stringWithSavedFrame]
|
||||
|
@ -413,12 +412,15 @@ NSString
|
|||
// Don't notify about projectDict changes
|
||||
[projectDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
|
||||
// Now save it directly to PC.project file
|
||||
// Now save it directly to username.project file
|
||||
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
|
||||
[projectFileDict writeToFile:projectFile atomically:YES];
|
||||
|
||||
// PCLogInfo(self, @"Windows and geometries saved");
|
||||
|
||||
[projectFileDict release];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue