mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 18:11:31 +00:00
save last editing in user file inside the wrapper and not main project file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28338 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
55f05b710b
commit
0cd4ab00c7
1 changed files with 5 additions and 3 deletions
|
@ -403,7 +403,7 @@ NSString
|
|||
[windows setObject:NSStringFromRect([[projectBrowser view] frame])
|
||||
forKey:@"ProjectBrowser"];
|
||||
|
||||
// Write to file and exit if prefernces wasn't set to save panels
|
||||
// Write to file and exit if preferences wasn't set to save panels
|
||||
if (!rememberWindows)
|
||||
{
|
||||
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
|
@ -452,6 +452,9 @@ NSString
|
|||
// Now save it directly to username.project file
|
||||
[projectFileDict setObject:windows forKey:@"PC_WINDOWS"];
|
||||
|
||||
[projectFileDict setObject: [[NSCalendarDate date] description]
|
||||
forKey: PCLastEditing];
|
||||
|
||||
// add the file and write the wrapper.
|
||||
[projectFileWrapper addRegularFileWithContents:
|
||||
[NSData dataWithBytes: [[projectFileDict description] cString]
|
||||
|
@ -480,6 +483,7 @@ NSString
|
|||
|
||||
// remove key..
|
||||
[dict removeObjectForKey: @"PC_WINDOWS"];
|
||||
[dict removeObjectForKey: PCLastEditing];
|
||||
|
||||
// initialize the wrapper...
|
||||
projectFileWrapper = [[NSFileWrapper alloc] initDirectoryWithFileWrappers:
|
||||
|
@ -519,8 +523,6 @@ NSString
|
|||
dictData = [NSPropertyListSerialization dataFromPropertyList: dict
|
||||
format: NSPropertyListOpenStepFormat
|
||||
errorDescription: NULL];
|
||||
[projectDict setObject: [[NSCalendarDate date] description]
|
||||
forKey: PCLastEditing];
|
||||
[projectFileWrapper addRegularFileWithContents: dictData
|
||||
preferredFilename: file];
|
||||
if ([projectFileWrapper
|
||||
|
|
Loading…
Reference in a new issue