diff --git a/ChangeLog b/ChangeLog index 5b12234..2c1848d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-02-10 Sergii Stoian + + * Framework/PCProjectManager.m: Corrections in alert panel names. + Make "Add Files" panel run in modal mode. + * Framework/PCProject.m: Corrections in alert panel names. + * Framework/PCFileCreator.[mh]: Partial rewrite. Check existance of + files wich will be added. Make panel run in modal mode. + Add "Add Header File" option button. + * Documentation/TODO: Update. + 2009-02-08 Sergii Stoian * PCMenuController.m: diff --git a/Framework/PCFileCreator.m b/Framework/PCFileCreator.m index bc5fc4e..cfec4c1 100644 --- a/Framework/PCFileCreator.m +++ b/Framework/PCFileCreator.m @@ -404,6 +404,7 @@ static NSDictionary *dict = nil; } [nfDescriptionTV setString:[fileType objectForKey:@"TypeDescription"]]; + [nfAddHeaderButton setState:NSOffState]; if ([typeTitle isEqualToString:ObjCClass] || [typeTitle isEqualToString:CFile]) { @@ -443,6 +444,7 @@ static NSDictionary *dict = nil; NSEnumerator *enumerator = nil; NSString *filePath = nil; NSFileManager *fm = [NSFileManager defaultManager]; + BOOL complementary; /* NSLog(@"PCFileCreator: [createFile] %@ in category: %@", fileName, projectKey);*/ @@ -452,10 +454,10 @@ static NSDictionary *dict = nil; if (path) { // Get file list for creation - newFiles = [self - filesToCreateForFileOfType:fileType - path:path - withComplementary:[nfAddHeaderButton state]==NSOnState ? YES : NO]; + complementary = [nfAddHeaderButton state]==NSOnState ? YES : NO; + newFiles = [self filesToCreateForFileOfType:fileType + path:path + withComplementary:complementary]; // Check if project already has files with such names enumerator = [[newFiles allKeys] objectEnumerator];