Revision: 29605
http://sourceforge.net/p/bibdesk/svn/29605
Author: hofman
Date: 2025-09-19 14:30:05 +0000 (Fri, 19 Sep 2025)
Log Message:
-----------
use URL instaed of path
Modified Paths:
--------------
trunk/bibdesk/BDSKBibDeskProtocol.m
Modified: trunk/bibdesk/BDSKBibDeskProtocol.m
===================================================================
--- trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-19 14:27:24 UTC (rev 29604)
+++ trunk/bibdesk/BDSKBibDeskProtocol.m 2025-09-19 14:30:05 UTC (rev 29605)
@@ -149,8 +149,8 @@
#pragma mark Create web pages from template
- (NSData *)HTMLDataUsingTemplateFile:(NSString *)template
usingObject:(id)object {
- NSString *templateStringPath = [[NSBundle mainBundle]
pathForResource:template ofType:@"html"];
- NSString *templateString = [NSString
stringWithContentsOfFile:templateStringPath encoding:NSUTF8StringEncoding
error:NULL];
+ NSURL *templateURL = [[NSBundle mainBundle] URLForResource:template
withExtension:@"html"];
+ NSString *templateString = [NSString stringWithContentsOfURL:templateURL
encoding:NSUTF8StringEncoding error:NULL];
NSString *string = [BDSKTemplateParser
stringByParsingTemplateString:templateString usingObject:object];
return [string dataUsingEncoding:NSUTF8StringEncoding];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit