Revision: 24878
http://sourceforge.net/p/bibdesk/svn/24878
Author: hofman
Date: 2020-07-03 13:30:24 +0000 (Fri, 03 Jul 2020)
Log Message:
-----------
share file URLs rather than paths
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Actions.m
Modified: trunk/bibdesk/BibDocument_Actions.m
===================================================================
--- trunk/bibdesk/BibDocument_Actions.m 2020-07-03 06:30:05 UTC (rev 24877)
+++ trunk/bibdesk/BibDocument_Actions.m 2020-07-03 13:30:24 UTC (rev 24878)
@@ -487,7 +487,7 @@
NSArray *pubs = [self clickedOrSelectedPublications];
NSMutableArray *items = [pubs mutableCopy];
- NSString *path = nil;
+ NSURL *url = nil;
NSMutableString *body = [NSMutableString string];
NSMutableArray *files = [NSMutableArray array];
@@ -498,12 +498,12 @@
template = [BDSKTemplate templateForStyle:templateName];
for (BDSKLinkedFile *file in [pubs
valueForKeyPath:@"@unionOfArrays.localFiles"]) {
- if ((path = [[file URL] path]))
- [files addObject:path];
+ if ((url = [file URL]))
+ [files addObject:url];
}
if (template != nil) {
- if ([template templateFormat] & BDSKTemplateFormatRichText)
+ if (([template templateFormat] & BDSKTemplateFormatRichText))
[body setString:[[BDSKTemplateObjectProxy
attributedStringByParsingTemplate:template withObject:self publications:items
documentAttributes:NULL] string]];
else
[body setString:[BDSKTemplateObjectProxy
stringByParsingTemplate:template withObject:self publications:items]];
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