From: <mm...@us...> - 2003-12-14 08:56:25
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1:/tmp/cvs-serv19979 Modified Files: Tag: TRY_MMCC_031611 BibAppController.m Log Message: added HTML template file stuff to application initialization. Index: BibAppController.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BibAppController.m,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -C2 -d -r1.10 -r1.10.2.1 *** BibAppController.m 11 Nov 2003 22:57:44 -0000 1.10 --- BibAppController.m 14 Dec 2003 08:56:12 -0000 1.10.2.1 *************** *** 74,87 **** } if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"template.txt"]]){ ! // copy .pdf file: [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"txt"] toPath:[applicationSupportPath stringByAppendingPathComponent:@"template.txt"] handler:nil]; } if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"rssTemplate.txt"]]){ ! // copy .pdf file: [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"rssTemplate" ofType:@"txt"] toPath:[applicationSupportPath stringByAppendingPathComponent:@"rssTemplate.txt"] handler:nil]; } ! [NSApp registerServicesMenuSendTypes:[NSArray arrayWithObjects:NSStringPboardType,nil] returnTypes:[NSArray arrayWithObjects:NSStringPboardType,nil]]; --- 74,96 ---- } if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"template.txt"]]){ ! // copy template.txt file: [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"template" ofType:@"txt"] toPath:[applicationSupportPath stringByAppendingPathComponent:@"template.txt"] handler:nil]; } if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"rssTemplate.txt"]]){ ! // copy rss template file: [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"rssTemplate" ofType:@"txt"] toPath:[applicationSupportPath stringByAppendingPathComponent:@"rssTemplate.txt"] handler:nil]; } ! if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"htmlExportTemplate"]]){ ! // copy html file template file: ! [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"htmlExportTemplate" ofType:nil] ! toPath:[applicationSupportPath stringByAppendingPathComponent:@"htmlExportTemplate"] handler:nil]; ! ! }if(![DFM fileExistsAtPath:[applicationSupportPath stringByAppendingPathComponent:@"htmlItemExportTemplate"]]){ ! // copy html item template file: ! [DFM copyPath:[[NSBundle mainBundle] pathForResource:@"htmlItemExportTemplate" ofType:nil] ! toPath:[applicationSupportPath stringByAppendingPathComponent:@"htmlItemExportTemplate"] handler:nil]; ! } [NSApp registerServicesMenuSendTypes:[NSArray arrayWithObjects:NSStringPboardType,nil] returnTypes:[NSArray arrayWithObjects:NSStringPboardType,nil]]; |