diff --git a/ChangeLog b/ChangeLog index a6c47cc..afa387b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-08-09 Riccardo Mottola + + * English.lproj/ProjectCenter.gorm + * Framework/PCProjectManager.m + Recent Document menu support. + 2012-07-30 Wolfgang Lux * Framework/PCProjectBuilder.m (-line:startsWithString:, diff --git a/English.lproj/ProjectCenter.gorm/data.info b/English.lproj/ProjectCenter.gorm/data.info index 98c7e15..5e6878b 100644 Binary files a/English.lproj/ProjectCenter.gorm/data.info and b/English.lproj/ProjectCenter.gorm/data.info differ diff --git a/English.lproj/ProjectCenter.gorm/objects.gorm b/English.lproj/ProjectCenter.gorm/objects.gorm index 5e72963..a90141a 100644 Binary files a/English.lproj/ProjectCenter.gorm/objects.gorm and b/English.lproj/ProjectCenter.gorm/objects.gorm differ diff --git a/Framework/PCProjectManager.m b/Framework/PCProjectManager.m index 4b83e27..7408b85 100644 --- a/Framework/PCProjectManager.m +++ b/Framework/PCProjectManager.m @@ -553,6 +553,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; NSString *projectFileType = nil; PCProject *project = nil; NSDictionary *wap = nil; + NSString *projectPathToSave; // Check project path for invalid characters if ([aPath rangeOfString: @" "].location != NSNotFound || @@ -591,7 +592,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; BOOL isDir = NO; BOOL exists = NO; NSArray *tempList; - + exists = [[NSFileManager defaultManager] fileExistsAtPath:aPath isDirectory:&isDir]; if (!exists) @@ -599,6 +600,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; return nil; } + projectPathToSave = projectPath; if (isDir) { if ([projectFileType isEqualToString:@"pcproj"] == NO) @@ -611,6 +613,10 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; aPath = [tempList objectAtIndex:0]; } } + else + { + projectPathToSave = aPath; + } aPath = [aPath stringByAppendingPathComponent:@"PC.project"]; projectFile = [NSMutableDictionary dictionaryWithContentsOfFile:aPath]; } @@ -697,7 +703,10 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange"; [[project projectWindow] makeKeyAndOrderFront:self]; [self setActiveProject: project]; } + PCLogStatus(self, @"Saved opened Document as %@", projectPathToSave); + [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: [NSURL fileURLWithPath:projectPathToSave]]; } + return project; }