Revision: 7466 http://skim-app.svn.sourceforge.net/skim-app/?rev=7466&view=rev Author: hofman Date: 2011-09-02 10:21:46 +0000 (Fri, 02 Sep 2011) Log Message: ----------- rename method
Modified Paths: -------------- trunk/NSDocument_SKExtensions.m trunk/SKMainDocument.m trunk/SKNotesDocument.m trunk/SKTemplateManager.h trunk/SKTemplateManager.m Modified: trunk/NSDocument_SKExtensions.m =================================================================== --- trunk/NSDocument_SKExtensions.m 2011-09-01 09:39:45 UTC (rev 7465) +++ trunk/NSDocument_SKExtensions.m 2011-09-02 10:21:46 UTC (rev 7466) @@ -180,7 +180,7 @@ - (NSFileWrapper *)notesFileWrapperForTemplateType:(NSString *)typeName { NSFileWrapper *fileWrapper = nil; - if ([[SKTemplateManager sharedManager] isPackageTemplateType:typeName]) { + if ([[SKTemplateManager sharedManager] isRichTextBundleTemplateType:typeName]) { NSString *templatePath = [[SKTemplateManager sharedManager] pathForTemplateType:typeName]; NSDictionary *docAttributes = nil; NSAttributedString *templateAttrString = [[NSAttributedString alloc] initWithPath:templatePath documentAttributes:&docAttributes]; Modified: trunk/SKMainDocument.m =================================================================== --- trunk/SKMainDocument.m 2011-09-01 09:39:45 UTC (rev 7465) +++ trunk/SKMainDocument.m 2011-09-02 10:21:46 UTC (rev 7466) @@ -589,7 +589,7 @@ didWrite = [data writeToURL:absoluteURL options:0 error:&error]; else error = [NSError writeFileErrorWithLocalizedDescription:NSLocalizedString(@"Unable to write notes as FDF", @"Error description")]; - } else if ([[SKTemplateManager sharedManager] isPackageTemplateType:typeName]) { + } else if ([[SKTemplateManager sharedManager] isRichTextBundleTemplateType:typeName]) { NSFileWrapper *fileWrapper = [self notesFileWrapperForTemplateType:typeName]; if (fileWrapper) didWrite = [fileWrapper writeToFile:[absoluteURL path] atomically:NO updateFilenames:NO]; Modified: trunk/SKNotesDocument.m =================================================================== --- trunk/SKNotesDocument.m 2011-09-01 09:39:45 UTC (rev 7465) +++ trunk/SKNotesDocument.m 2011-09-02 10:21:46 UTC (rev 7466) @@ -244,7 +244,7 @@ if ([typeName isEqualToString:SKNotesRTFDocumentType]) fileWrapper = [self notesRTFDFileWrapper]; - else if ([typeName isEqualToString:SKNotesDocumentType] || [typeName isEqualToString:SKNotesTextDocumentType] || [typeName isEqualToString:SKNotesRTFDocumentType] || [typeName isEqualToString:SKNotesFDFDocumentType] || [[SKTemplateManager sharedManager] isPackageTemplateType:typeName] == NO) + else if ([typeName isEqualToString:SKNotesDocumentType] || [typeName isEqualToString:SKNotesTextDocumentType] || [typeName isEqualToString:SKNotesRTFDocumentType] || [typeName isEqualToString:SKNotesFDFDocumentType] || [[SKTemplateManager sharedManager] isRichTextBundleTemplateType:typeName] == NO) fileWrapper = [super fileWrapperOfType:typeName error:outError]; else fileWrapper = [self notesFileWrapperForTemplateType:typeName]; Modified: trunk/SKTemplateManager.h =================================================================== --- trunk/SKTemplateManager.h 2011-09-01 09:39:45 UTC (rev 7465) +++ trunk/SKTemplateManager.h 2011-09-02 10:21:46 UTC (rev 7466) @@ -55,6 +55,6 @@ - (NSString *)templateTypeForDisplayName:(NSString *)name; - (BOOL)isRichTextTemplateType:(NSString *)typeName; -- (BOOL)isPackageTemplateType:(NSString *)typeName; +- (BOOL)isRichTextBundleTemplateType:(NSString *)typeName; @end Modified: trunk/SKTemplateManager.m =================================================================== --- trunk/SKTemplateManager.m 2011-09-01 09:39:45 UTC (rev 7465) +++ trunk/SKTemplateManager.m 2011-09-02 10:21:46 UTC (rev 7466) @@ -119,7 +119,7 @@ return [types containsObject:[[isRichTextTemplateFile pathExtension] lowercaseString]]; } -- (BOOL)isPackageTemplateType:(NSString *)typeName { +- (BOOL)isRichTextBundleTemplateType:(NSString *)typeName { return [[typeName pathExtension] isCaseInsensitiveEqual:@"rtfd"]; } 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