Revision: 7457 http://skim-app.svn.sourceforge.net/skim-app/?rev=7457&view=rev Author: hofman Date: 2011-08-30 15:08:31 +0000 (Tue, 30 Aug 2011) Log Message: ----------- separate method to reset custom template files
Modified Paths: -------------- trunk/SKMainDocument.m trunk/SKNotesDocument.m trunk/SKTemplateManager.h trunk/SKTemplateManager.m Modified: trunk/SKMainDocument.m =================================================================== --- trunk/SKMainDocument.m 2011-08-30 11:43:51 UTC (rev 7456) +++ trunk/SKMainDocument.m 2011-08-30 15:08:31 UTC (rev 7457) @@ -315,7 +315,8 @@ [writableTypes removeObject:SKBareXDVDocumentType]; } if (saveOperation == NSSaveToOperation) { - [writableTypes addObjectsFromArray:[[SKTemplateManager sharedManager] customTemplateFilesResetting]]; + [[SKTemplateManager sharedManager] resetCustomTemplateFiles]; + [writableTypes addObjectsFromArray:[[SKTemplateManager sharedManager] customTemplateFiles]]; } return writableTypes; } Modified: trunk/SKNotesDocument.m =================================================================== --- trunk/SKNotesDocument.m 2011-08-30 11:43:51 UTC (rev 7456) +++ trunk/SKNotesDocument.m 2011-08-30 15:08:31 UTC (rev 7457) @@ -193,7 +193,8 @@ NSArray *writableTypes = [super writableTypesForSaveOperation:saveOperation]; if (saveOperation == NSSaveToOperation) { NSMutableArray *tmpArray = [[writableTypes mutableCopy] autorelease]; - [tmpArray addObjectsFromArray:[[SKTemplateManager sharedManager] customTemplateFilesResetting]]; + [[SKTemplateManager sharedManager] resetCustomTemplateFiles]; + [tmpArray addObjectsFromArray:[[SKTemplateManager sharedManager] customTemplateFiles]]; writableTypes = tmpArray; } return writableTypes; Modified: trunk/SKTemplateManager.h =================================================================== --- trunk/SKTemplateManager.h 2011-08-30 11:43:51 UTC (rev 7456) +++ trunk/SKTemplateManager.h 2011-08-30 15:08:31 UTC (rev 7457) @@ -46,7 +46,7 @@ + (id)sharedManager; - (NSArray *)customTemplateFiles; -- (NSArray *)customTemplateFilesResetting; +- (void)resetCustomTemplateFiles; - (NSString *)pathForTemplateFile:(NSString *)filename; Modified: trunk/SKTemplateManager.m =================================================================== --- trunk/SKTemplateManager.m 2011-08-30 11:43:51 UTC (rev 7456) +++ trunk/SKTemplateManager.m 2011-08-30 15:08:31 UTC (rev 7457) @@ -77,9 +77,8 @@ return customTemplateFiles; } -- (NSArray *)customTemplateFilesResetting { +- (void)resetCustomTemplateFiles { SKDESTROY(customTemplateFiles); - return [self customTemplateFiles]; } - (NSString *)pathForTemplateFile:(NSString *)filename { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit